5252
5353 build-windows-arm64 :
5454 name : Build on Windows ARM64 (MSVC)
55- runs-on : windows-2022
55+ runs-on : windows-11-arm
5656 steps :
5757 - name : Checkout repository
5858 uses : actions/checkout@v4
9595 name : Build on Linux X86_64 (GCC)
9696 runs-on : ubuntu-24.04
9797 container :
98- image : ubuntu:22 .04
98+ image : ubuntu:20 .04
9999 options : --privileged
100100 steps :
101101 - name : Checkout repository
@@ -145,9 +145,9 @@ jobs:
145145
146146 build-linux-arm64 :
147147 name : Build on Linux ARM64 (GCC)
148- runs-on : ubuntu-24.04
148+ runs-on : ubuntu-24.04-arm
149149 container :
150- image : ubuntu:22 .04
150+ image : ubuntu:20 .04
151151 options : --privileged
152152 steps :
153153 - name : Checkout repository
@@ -165,30 +165,28 @@ jobs:
165165 apt-get install -y --no-install-recommends gcc-13 g++-13
166166 update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 100
167167 update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 100
168- apt-get update -y
169- apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
170-
168+
171169 - name : Install xmake
172170 uses : xmake-io/github-action-setup-xmake@v1
173171
174172 - name : Build BinaryStream Static (Debug)
175173 run : |
176- xmake f --mode=debug --kind=static --arch=arm64 --sdk=/usr/aarch64-linux-gnu --bin=/usr/bin --cc=aarch64-linux-gnu-gcc --cxx=aarch64-linux-gnu-g++ --ld=aarch64-linux-gnu-g++ --sh=aarch64-linux-gnu-g++ -- root
174+ xmake f --mode=debug --kind=static --root
177175 xmake --all --root
178176
179177 - name : Build BinaryStream Shared (Debug)
180178 run : |
181- xmake f --mode=debug --kind=shared --arch=arm64 --sdk=/usr/aarch64-linux-gnu --bin=/usr/bin --cc=aarch64-linux-gnu-gcc --cxx=aarch64-linux-gnu-g++ --ld=aarch64-linux-gnu-g++ --sh=aarch64-linux-gnu-g++ -- root
179+ xmake f --mode=debug --kind=shared --root
182180 xmake --all --root
183181
184182 - name : Build BinaryStream Static (Release)
185183 run : |
186- xmake f --mode=release --kind=static --arch=arm64 --sdk=/usr/aarch64-linux-gnu --bin=/usr/bin --cc=aarch64-linux-gnu-gcc --cxx=aarch64-linux-gnu-g++ --ld=aarch64-linux-gnu-g++ --sh=aarch64-linux-gnu-g++ -- root
184+ xmake f --mode=release --kind=static --root
187185 xmake --all --root
188186
189187 - name : Build BinaryStream Shared (Release)
190188 run : |
191- xmake f --mode=release --kind=shared --arch=arm64 --sdk=/usr/aarch64-linux-gnu --bin=/usr/bin --cc=aarch64-linux-gnu-gcc --cxx=aarch64-linux-gnu-g++ --ld=aarch64-linux-gnu-g++ --sh=aarch64-linux-gnu-g++ -- root
189+ xmake f --mode=release --kind=shared --root
192190 xmake --all --root
193191
194192 - name : Upload Artifact
@@ -197,42 +195,6 @@ jobs:
197195 name : BinaryStream-linux-arm64-${{ github.sha }}
198196 path : artifacts/BinaryStream-linux-arm64.zip
199197
200- build-macos-x86_64 :
201- name : Build on MacOS X86_64 (Clang)
202- runs-on : macos-14
203- steps :
204- - name : Checkout repository
205- uses : actions/checkout@v4
206-
207- - name : Install xmake
208- uses : xmake-io/github-action-setup-xmake@v1
209-
210- - name : Build BinaryStream Static (Debug)
211- run : |
212- xmake f --mode=debug --arch=x86_64 --kind=static
213- xmake --all
214-
215- - name : Build BinaryStream Shared (Debug)
216- run : |
217- xmake f --mode=debug --arch=x86_64 --kind=shared
218- xmake --all
219-
220- - name : Build BinaryStream Static (Release)
221- run : |
222- xmake f --mode=release --arch=x86_64 --kind=static
223- xmake --all
224-
225- - name : Build BinaryStream Shared (Release)
226- run : |
227- xmake f --mode=release --arch=x86_64 --kind=shared
228- xmake --all
229-
230- - name : Upload Artifact
231- uses : actions/upload-artifact@v4
232- with :
233- name : BinaryStream-macosx-x86_64-${{ github.sha }}
234- path : artifacts/BinaryStream-macosx-x86_64.zip
235-
236198 build-macos-arm64 :
237199 name : Build on MacOS ARM64 (Clang)
238200 runs-on : macos-14
0 commit comments