File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,11 +2,9 @@ name: build-and-test
22on :
33 push :
44 pull_request :
5- schedule :
6- - cron : 0 4 * * *
75
86env :
9- zig_version : master
7+ zig_version : 0.16.0
108
119jobs :
1210 build-and-test-linux :
2018 - run : zig build
2119 - run : zig build test
2220 - run : zig build docs
23- - name : Upload docs artifact
24- if : github.ref == 'refs/heads/main' && github.event_name != 'schedule'
25- uses : actions/upload-pages-artifact@v3
26- with :
27- path : ./zig-out/docs/
2821
2922 build-and-test-windows :
3023 runs-on : windows-latest
3528 version : ${{ env.zig_version }}
3629 - run : zig build
3730 - run : zig build test
38-
39- deploy-pages :
40- runs-on : ubuntu-latest
41- needs : build-and-test-linux
42- if : github.ref == 'refs/heads/main' && github.event_name != 'schedule'
43- permissions :
44- pages : write # to deploy to Pages
45- id-token : write # to verify the deployment originates from an appropriate source
46- environment :
47- name : github-pages
48- url : ${{ steps.deployment.outputs.page_url }}
49- steps :
50- - name : Deploy to GitHub Pages
51- id : deployment
52- uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments