3232 fail-fast : false
3333 matrix :
3434 version :
35- - ' lts'
36- - ' 1'
35+ - ' 1.10' # currently the LTS
3736 steps :
3837 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
3938 with :
5049 # This job takes a long time (1+ hours).
5150 # So we intentionally skip this job on PR runs.
5251 # But we still run this job on Merge Queue jobs.
53- if : github.event_name != 'pull_request'
52+ # if: github.event_name != 'pull_request' # TODO: Uncomment this line before merging the PR
5453 runs-on : ubuntu-latest
5554 timeout-minutes : 360
5655 strategy :
@@ -66,18 +65,18 @@ jobs:
6665 - name : Install dependencies
6766 run : julia --color=yes --project -e "using Pkg; Pkg.instantiate()"
6867 - name : Cleanup before we build
69- run :
70- rm -fv versions.json
68+ run : |
69+ make clean
7170 make nuke
7271 make purge_download_cache_dir
73- - name : Download the old versions.json, so we can re-use it
72+ - name : Download the old versions.json, so we can re-use it and build on top of it
7473 run : curl -LO https://julialang-s3.julialang.org/bin/versions.json
7574 - name : Build versions.json
76- run : make versions.json
75+ run : make build
7776 env :
78- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
77+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Used to authenticate to GitHub API to get list of tags
7978 - name : Run the post-build tests
80- run : julia --project test/post_build.jl versions.json
79+ run : make test-full
8180 - name : Install NPM deps
8281 run : make _npm_ci
8382 - name : Validate versions.json against schema
9695 if : github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main'
9796 runs-on : ubuntu-latest
9897 timeout-minutes : 60
99-
10098 steps :
10199 - name : Download versions.json from previous job
102100 uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
@@ -110,10 +108,10 @@ jobs:
110108 aws-region : ${{ env.aws_region }}
111109 - name : Upload versions.json to S3
112110 run : aws s3 cp versions.json s3://${{ env.s3_bucket }}/bin/versions.json --acl public-read --no-progress
113- - name : Purge cache
111+ - name : Purge Fastly cache (Fastly sits in front of S3)
114112 run : curl -X PURGE https://julialang-s3.julialang.org/bin/versions.json
115113
116- test-current-s3 :
114+ test-current-s3-allowed-to-fail :
117115 # We intentionally do not make this job a "required status check" on PRs.
118116 # Because if the currently deployed `versions.json` on S3 is already broken,
119117 # then this job will fail, which would block us from merging a PR with fixes.
0 commit comments