7
7
- llvm19
8
8
- 014-dev
9
9
- actions-test
10
+ - actions-test-2
10
11
concurrency :
11
12
# Cancels pending runs when a PR gets updated.
12
13
group : ${{ github.head_ref || github.run_id }}-${{ github.actor }}
@@ -25,14 +26,12 @@ jobs:
25
26
- x86_64-windows-gnu
26
27
- aarch64-macos-none
27
28
- aarch64-linux-musl
28
- release_flag : ["Doptimize=ReleaseFast"]
29
- strip_flag : ["Dstrip"]
30
- name_append : [""]
29
+ safe : [false]
31
30
include :
32
31
- 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
36
35
steps :
37
36
- run : sudo apt-get install -y ninja-build
38
37
- uses : actions/checkout@v4
@@ -44,14 +43,14 @@ jobs:
44
43
with :
45
44
path : zig
46
45
- 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
49
48
- run : sed -i 's/max_rss = 7_800_000_000/max_rss = 9_000_000_000/' zig/build.zig
50
49
- run : cat build
51
50
- run : CMAKE_GENERATOR=Ninja ./build ${{ matrix.target }} baseline
52
51
- uses : actions/upload-artifact@v4
53
52
with :
54
- name : bootstrap-${{ matrix.target }}${{ matrix.name_append }}
53
+ name : bootstrap-${{ matrix.target }}${{ matrix.safe && "-ReleaseSafe" || "" }}
55
54
path : out/zig-${{ matrix.target }}-baseline
56
55
release :
57
56
needs : build
72
71
chmod +x bootstrap-aarch64-macos-none/zig
73
72
chmod +x bootstrap-aarch64-macos-none-ReleaseSafe/zig
74
73
chmod +x bootstrap-aarch64-linux-musl/zig
74
+ chmod +x bootstrap-aarch64-linux-musl-ReleaseSafe/zig
75
75
- name : Build ZLS
76
76
run : |
77
77
./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:
80
80
./bootstrap-x86_64-linux-musl/zig build -Doptimize=ReleaseSafe -Dtarget=aarch64-macos-none --prefix . --prefix-exe-dir ./bootstrap-aarch64-macos-none &
81
81
./bootstrap-x86_64-linux-musl/zig build -Doptimize=ReleaseSafe -Dtarget=aarch64-macos-none --prefix . --prefix-exe-dir ./bootstrap-aarch64-macos-none-ReleaseSafe &
82
82
./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 &
83
84
wait
84
85
- name : Compress artifacts
85
86
run : |
86
87
zip -r bootstrap-x86_64-macos-none.zip bootstrap-x86_64-macos-none &
87
88
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 &
88
90
zip -r bootstrap-x86_64-windows-gnu.zip bootstrap-x86_64-windows-gnu &
89
91
zip -r bootstrap-aarch64-macos-none.zip bootstrap-aarch64-macos-none &
90
92
zip -r bootstrap-aarch64-macos-none-ReleaseSafe.zip bootstrap-aarch64-macos-none-ReleaseSafe &
99
101
files : |
100
102
bootstrap-x86_64-macos-none.zip
101
103
bootstrap-x86_64-linux-musl.zip
104
+ bootstrap-x86_64-linux-musl-ReleaseSafe.zip
102
105
bootstrap-x86_64-windows-gnu.zip
103
106
bootstrap-aarch64-macos-none.zip
104
107
bootstrap-aarch64-macos-none-ReleaseSafe.zip
0 commit comments