Skip to content

Commit

Permalink
Wipe cache before compiling each target
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Apr 27, 2024
1 parent 0849896 commit 1e0d0e1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:

- name: build-windows-arm64
run: |
zig build -Doptimize=ReleaseFast -Dtarget=aarch64-windows
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=aarch64-windows
- uses: actions/upload-artifact@v3
with:
name: build-windows-arm64
path: zig-out/bin/libsodium.dll

- name: build-linux-x64
run: |
zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-gnu.2.17
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-gnu.2.17
- name: tests
run: cd zig-out/bin && ./run.sh
- uses: actions/upload-artifact@v3
Expand All @@ -62,7 +62,7 @@ jobs:
sudo ln -s /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.* /lib
- name: build-linux-arm
run: |
zig build -Doptimize=ReleaseFast -Dtarget=arm-linux-gnueabihf.2.23
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=arm-linux-gnueabihf.2.23
- name: tests
run: |
cd zig-out/bin && env LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib ./run.sh
Expand All @@ -82,7 +82,7 @@ jobs:
sudo ln -s /usr/aarch64-linux-gnu/lib/ld-linux-aarch64.so.* /lib
- name: build-linux-arm64
run: |
zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-gnu.2.23
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-gnu.2.23
- name: tests
run: |
cd zig-out/bin && env LD_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib ./run.sh
Expand All @@ -93,23 +93,23 @@ jobs:

- name: build-linux-musl-x64
run: |
zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-musl
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux-musl
- uses: actions/upload-artifact@v3
with:
name: build-linux-musl-x64
path: zig-out/lib/libsodium.a

- name: build-linux-musl-arm
run: |
zig build -Doptimize=ReleaseFast -Dtarget=arm-linux-musleabihf
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=arm-linux-musleabihf
- uses: actions/upload-artifact@v3
with:
name: build-linux-musl-arm
path: zig-out/lib/libsodium.a

- name: build-linux-musl-arm64
run: |
zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-musl
rm -fr zig-out zig-cache; zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux-musl
- uses: actions/upload-artifact@v3
with:
name: build-linux-musl-arm64
Expand Down

0 comments on commit 1e0d0e1

Please sign in to comment.