8000 Create GitHub Actions workflow · ziglibs/string-searching@acc0dab · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit acc0dab

Browse files
Create GitHub Actions workflow
1 parent c5aca8a commit acc0dab

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on:
3+
push:
4+
paths:
5+
- '**.zig'
6+
pull_request:
7+
paths:
8+
- '**.zig'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: install software
16+
run: |
17+
ZIG=$(wget --quiet --output-document=- https://ziglang.org/download/index.json | jq --raw-output '.master."x86_64-linux".tarball')
18+
echo installing $ZIG into ./zig/
19+
wget --quiet --output-document=- $ZIG | tar Jx
20+
mv zig-linux-x86_64-* zig
21+
echo zig version $(./zig/zig version)
22+
git submodule update --init --recursive
23+
- name: build
24+
run: |
25+
export PATH=./zig:$PATH
26+
zig build test

0 commit comments

Comments
 (0)
< 293F /turbo-frame>
0