Skip to content

Commit

Permalink
Merge pull request #27 from motiejus/zig
Browse files Browse the repository at this point in the history
ci: remove zig sdk from cache
  • Loading branch information
motiejus authored Feb 10, 2024
2 parents 69918b4 + 31f23b1 commit d8092eb
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,17 @@ jobs:
- uses: actions/cache@v4
with:
key: zig-sdk-and-cache-${{ hashFiles('.github/workflows/ci.yaml') }}
path: |
zig-sdk
~/.cache/zig
path: ~/.cache/zig
- run: |
if [ ! -d zig-sdk ]; then
wget --progress=dot:mega \
https://ziglang.org/download/0.11.0/zig-linux-$(uname -m)-0.11.0.tar.xz \
&& tar -xJf zig-linux-*.tar.xz \
&& rm zig-linux-*.xz \
&& mv zig-linux-* zig-sdk \
&& ln -s zig-sdk/zig
fi
- run: make -j$(nproc)
env:
CC: ./zig cc -target x86_64-linux-musl
CXX: ./zig c++ -target x86_64-linux-musl
wget --progress=dot:mega \
https://ziglang.org/download/0.11.0/zig-linux-$(uname -m)-0.11.0.tar.xz
tar -xJf zig-linux-*.tar.xz
rm zig-linux-*.xz
mv zig-linux-* zig-sdk
- run: |
make -j$(nproc) \
CC="zig-sdk/zig cc -target $(uname -m)-linux-musl" \
CXX="zig-sdk/zig c++ -target $(uname -m)-linux-musl"
- run: _release/inotify-info

build-with-docker:
Expand Down

0 comments on commit d8092eb

Please sign in to comment.