-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 952 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Unit Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
ZIG_VERSION: 0.13.0
LLVM_VERSION: 18
jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: Install dependency
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/noble/ llvm-toolchain-noble-${{env.LLVM_VERSION}} main'
sudo apt update
sudo apt install -y \
git sudo binutils curl wget tar xz-utils
- name: Install zig
run: |
curl https://ziglang.org/download/${{env.ZIG_VERSION}}/zig-linux-x86_64-${{env.ZIG_VERSION}}.tar.xz -L -o zig.tar.xz
tar -xf zig.tar.xz
echo "$(pwd)/zig-linux-x86_64-${{env.ZIG_VERSION}}" >> $GITHUB_PATH
- name: Unit Tests
run: |
zig build test --summary all