Skip to content

Commit 01bc976

Browse files
authored
try building linux releasesafe
1 parent cd19959 commit 01bc976

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- llvm19
88
- 014-dev
99
- actions-test
10+
- actions-test-2
1011
concurrency:
1112
# Cancels pending runs when a PR gets updated.
1213
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
@@ -25,14 +26,12 @@ jobs:
2526
- x86_64-windows-gnu
2627
- aarch64-macos-none
2728
- aarch64-linux-musl
28-
release_flag: ["Doptimize=ReleaseFast"]
29-
strip_flag: ["Dstrip"]
30-
name_append: [""]
29+
safe: [false]
3130
include:
3231
- target: aarch64-macos-none
33-
release_flag: "Doptimize=ReleaseSafe"
34-
strip_flag: "Ddebug-extensions"
35-
name_append: "-ReleaseSafe"
32+
safe: true
33+
- target: x86_64-linux-musl
34+
safe: true
3635
steps:
3736
- run: sudo apt-get install -y ninja-build
3837
- uses: actions/checkout@v4
@@ -44,14 +43,14 @@ jobs:
4443
with:
4544
path: zig
4645
- run: sed -i 's/ZIG_VERSION="0.14.0-dev.2257+e6d2e1641"/ZIG_VERSION="0.14.0"/' build
47-
- run: sed -i 's/Doptimize=ReleaseFast/${{ matrix.release_flag }}/' build
48-
- run: sed -i 's/Dstrip/${{ matrix.strip_flag }}/' build
46+
- run: sed -i 's/Doptimize=ReleaseFast/${{ matrix.safe && "Doptimize=ReleaseSafe" || "Doptimize=ReleaseFast" }}/' build
47+
- run: sed -i 's/Dstrip/${{ matrix.safe && "Ddebug-extensions" || "Dstrip" }}/' build
4948
- run: sed -i 's/max_rss = 7_800_000_000/max_rss = 9_000_000_000/' zig/build.zig
5049
- run: cat build
5150
- run: CMAKE_GENERATOR=Ninja ./build ${{ matrix.target }} baseline
5251
- uses: actions/upload-artifact@v4
5352
with:
54-
name: bootstrap-${{ matrix.target }}${{ matrix.name_append }}
53+
name: bootstrap-${{ matrix.target }}${{ matrix.safe && "-ReleaseSafe" || "" }}
5554
path: out/zig-${{ matrix.target }}-baseline
5655
release:
5756
needs: build
@@ -72,6 +71,7 @@ jobs:
7271
chmod +x bootstrap-aarch64-macos-none/zig
7372
chmod +x bootstrap-aarch64-macos-none-ReleaseSafe/zig
7473
chmod +x bootstrap-aarch64-linux-musl/zig
74+
chmod +x bootstrap-aarch64-linux-musl-ReleaseSafe/zig
7575
- name: Build ZLS
7676
run: |
7777
./bootstrap-x86_64-linux-musl/zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-macos-none --prefix . --prefix-exe-dir ./bootstrap-x86_64-macos-none &
@@ -80,11 +80,13 @@ jobs:
8080
./bootstrap-x86_64-linux-musl/zig build -Doptimize=ReleaseSafe -Dtarget=aarch64-macos-none --prefix . --prefix-exe-dir ./bootstrap-aarch64-macos-none &
8181
./bootstrap-x86_64-linux-musl/zig build -Doptimize=ReleaseSafe -Dtarget=aarch64-macos-none --prefix . --prefix-exe-dir ./bootstrap-aarch64-macos-none-ReleaseSafe &
8282
./bootstrap-x86_64-linux-musl/zig build -Doptimize=ReleaseSafe -Dtarget=aarch64-linux-musl --prefix . --prefix-exe-dir ./bootstrap-aarch64-linux-musl &
83+
./bootstrap-x86_64-linux-musl/zig build -Doptimize=ReleaseSafe -Dtarget=aarch64-linux-musl --prefix . --prefix-exe-dir ./bootstrap-aarch64-linux-musl-ReleaseSafe &
8384
wait
8485
- name: Compress artifacts
8586
run: |
8687
zip -r bootstrap-x86_64-macos-none.zip bootstrap-x86_64-macos-none &
8788
zip -r bootstrap-x86_64-linux-musl.zip bootstrap-x86_64-linux-musl &
89+
zip -r bootstrap-x86_64-linux-musl-ReleaseSafe.zip bootstrap-x86_64-linux-musl-ReleaseSafe &
8890
zip -r bootstrap-x86_64-windows-gnu.zip bootstrap-x86_64-windows-gnu &
8991
zip -r bootstrap-aarch64-macos-none.zip bootstrap-aarch64-macos-none &
9092
zip -r bootstrap-aarch64-macos-none-ReleaseSafe.zip bootstrap-aarch64-macos-none-ReleaseSafe &
@@ -99,6 +101,7 @@ jobs:
99101
files: |
100102
bootstrap-x86_64-macos-none.zip
101103
bootstrap-x86_64-linux-musl.zip
104+
bootstrap-x86_64-linux-musl-ReleaseSafe.zip
102105
bootstrap-x86_64-windows-gnu.zip
103106
bootstrap-aarch64-macos-none.zip
104107
bootstrap-aarch64-macos-none-ReleaseSafe.zip

0 commit comments

Comments
 (0)