diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4aaf0a787..95b8d6a8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: jobs: prep: uses: ./.github/workflows/prep.yml - build_and_test: - needs: prep - uses: ./.github/workflows/build_and_test.yml - secrets: inherit +# build_and_test: +# needs: prep +# uses: ./.github/workflows/build_and_test.yml +# secrets: inherit diff --git a/.github/workflows/tectonic-on-arxiv.yml b/.github/workflows/tectonic-on-arxiv.yml new file mode 100644 index 000000000..289ff38f2 --- /dev/null +++ b/.github/workflows/tectonic-on-arxiv.yml @@ -0,0 +1,47 @@ +name: "Tectonic on arXiv" + +on: + pull_request: + workflow_dispatch: + inputs: + base: + description: "Base branch to compare this run against" + required: false + default: "" + +jobs: + tectonic-on-arxiv: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} + - name: Set up s3 + uses: s3-actions/s3cmd@v3.0.0 + with: + provider: cloudflare + access_key: ${{ secrets.CLOUDFLARE_ACCESS_KEY }} + secret_key: ${{ secrets.CLOUDFLARE_SECRET_KEY }} + account_id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + - name: Load Dataset + run: | + s3cmd get "s3://tectonic-on-arxiv/1702.tar.gz" 1702.tar.gz + mkdir datasets + tar -xzvf 1702.tar.gz -C datasets + - name: Tectonic-on-ArXiv + uses: craftspider/tectonic-on-arxiv@master + with: + head: |- + ${{ case( + github.event_name == 'pull_request', github.event.pull_request.head.sha, + github.event_name == 'workflow_dispatch', github.sha, + github.sha + ) }} + base: |- + ${{ case( + github.event_name == 'pull_request', github.event.pull_request.base.sha, + github.event_name == 'workflow_dispatch', inputs.base, + '' + ) }} \ No newline at end of file