update main.yml #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Zig CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Install Zig | |
| run: | | |
| wget https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz | |
| tar -xf zig-x86_64-linux-0.15.2.tar.xz | |
| sudo mv zig-x86_64-linux-0.15.2 $HOME/zig | |
| $HOME/zig/zig version | |
| - name: Build and test | |
| run: | | |
| mkdir dirty | |
| $HOME/zig/zig test src/root.zig |