mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
try removing any prebuilt libhost.a files
This commit is contained in:
parent
f38429ca81
commit
d4a9fab1a9
1 changed files with 21 additions and 6 deletions
27
.github/workflows/ci_zig.yml
vendored
27
.github/workflows/ci_zig.yml
vendored
|
|
@ -67,12 +67,6 @@ jobs:
|
|||
run: |
|
||||
zig build playground-test -Doptimize=ReleaseSmall -- --verbose
|
||||
|
||||
- name: Run Test Platform Tests
|
||||
run: |
|
||||
zig build -Dllvm
|
||||
./zig-out/bin/roc --no-cache test/platform/str/app.roc
|
||||
./zig-out/bin/roc --no-cache test/platform/int/app.roc
|
||||
|
||||
zig-tests:
|
||||
needs: check-once
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
@ -99,6 +93,27 @@ jobs:
|
|||
run: |
|
||||
zig build -Dllvm -Dfuzz -Dsystem-afl=false
|
||||
|
||||
- name: Run Test Platform Tests (Unix)
|
||||
if: runner.os != 'Windows'
|
||||
run: |
|
||||
# Remove pre-built libhost.a files to ensure they're rebuilt with correct PIE settings
|
||||
rm -f test/platform/str/libhost.a test/platform/int/libhost.a
|
||||
# Rebuild test platform host libraries
|
||||
zig build -Dllvm -Dfuzz -Dsystem-afl=false
|
||||
./zig-out/bin/roc --no-cache test/platform/str/app.roc
|
||||
./zig-out/bin/roc --no-cache test/platform/int/app.roc
|
||||
|
||||
- name: Run Test Platform Tests (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
# Remove pre-built libhost.a files to ensure they're rebuilt with correct PIE settings
|
||||
if (Test-Path test/platform/str/libhost.a) { Remove-Item test/platform/str/libhost.a }
|
||||
if (Test-Path test/platform/int/libhost.a) { Remove-Item test/platform/int/libhost.a }
|
||||
# Rebuild test platform host libraries
|
||||
zig build -Dllvm -Dfuzz -Dsystem-afl=false
|
||||
zig-out\bin\roc.exe --no-cache test/platform/str/app.roc
|
||||
zig-out\bin\roc.exe --no-cache test/platform/int/app.roc
|
||||
|
||||
- name: roc executable minimal check (Unix)
|
||||
if: runner.os != 'Windows'
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue