Skip to content

update main.yml

update main.yml #34

Workflow file for this run

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