1111 version :
1212 runs-on : ubuntu-latest
1313 outputs :
14- version : $
14+ version : ${{ steps.print-version.outputs.version }}
1515 steps :
16+ - name : Clone koana repo
17+ uses : actions/checkout@v4
18+ with :
19+ repository : DSharpPlus/libkoana
20+
1621 - name : Print version
1722 id : print-version
1823 shell : bash
5055 cd openssl
5156 git checkout openssl-3.5.0
5257 $env:PATH += ";C:\Program Files\NASM"
53- C:\Strawberry\perl\bin\perl.exe Configure no-makedepend no-shared VC-WIN64A
58+ C:\Strawberry\perl\bin\perl.exe Configure no-makedepend VC-WIN64A
5459 nmake
5560
5661 - name : Build koana
7075 path : build/Release/koana-win-x64.dll
7176
7277 build-windows-arm64 :
73- runs-on : windows-latest
78+ runs-on : windows-11-arm
7479 needs : version
7580 steps :
7681 - name : Clone koana repo
8287 - name : Setup VS build tools
8388 uses : seanmiddleditch/gha-setup-vsdevenv@v5
8489 with :
85- host_arch : amd64
90+ host_arch : arm64
8691 arch : arm64
8792
8893 - name : Install nasm
97102 cd openssl
98103 git checkout openssl-3.5.0
99104 $env:PATH += ";C:\Program Files\NASM"
100- C:\Strawberry\perl\bin\perl.exe Configure no-makedepend no-shared VC-WIN64-ARM
105+ C:\Strawberry\perl\bin\perl.exe Configure no-makedepend VC-WIN64-ARM
101106 nmake
102107
103108 - name : Build koana
@@ -158,7 +163,7 @@ jobs:
158163 path : build/libkoana-linux-x64.so
159164
160165 build-linux-arm64 :
161- runs-on : ubuntu-latest
166+ runs-on : ubuntu-24.04-arm
162167 needs : version
163168 steps :
164169 - name : Clone koana repo
@@ -171,24 +176,21 @@ jobs:
171176 shell : bash
172177 run : |
173178 sudo apt update
174- sudo apt install cmake gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libssl-dev
179+ sudo apt install cmake
175180
176181 - name : Build openssl
177182 shell : bash
178183 run : |
179184 git clone https://github.com/openssl/openssl
180185 cd openssl
181186 git checkout openssl-3.5.0
182- export CC=aarch64-linux-gnu-gcc
183- export CXX=aarch64-linux-gnu-g++
184- export AR=aarch64-linux-gnu-ar
185187 ./Configure no-makedepend linux-aarch64
186188 make -j4
187189
188190 - name : Build koana
189191 shell : bash
190192 run : |
191- cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ - DOPENSSL_ROOT_DIR="./openssl/" -DOPENSSL_CRYPTO_LIBRARY="./openssl/libcrypto.so" -DOPENSSL_SSL_LIBRARY="./openssl/libssl.so" -DOPENSSL_INCLUDE_DIR="./openssl/include/"
193+ cmake -B build -DCMAKE_BUILD_TYPE=Release -DOPENSSL_ROOT_DIR="./openssl/" -DOPENSSL_CRYPTO_LIBRARY="./openssl/libcrypto.so" -DOPENSSL_SSL_LIBRARY="./openssl/libssl.so" -DOPENSSL_INCLUDE_DIR="./openssl/include/"
192194 cmake --build build --parallel
193195
194196 - name : Rename native
@@ -228,7 +230,7 @@ jobs:
228230 - name : Build koana
229231 shell : bash
230232 run : |
231- cmake -B build -DOPENSSL_ROOT_DIR=".\ openssl\ " -DOPENSSL_CRYPTO_LIBRARY=".\ openssl\ libcrypto.a" -DOPENSSL_SSL_LIBRARY=".\ openssl\ libssl.a" -DOPENSSL_INCLUDE_DIR=".\ openssl\ include\ " -DCMAKE_OSX_ARCHITECTURES=x86_64
233+ cmake -B build -DOPENSSL_ROOT_DIR="./ openssl/ " -DOPENSSL_CRYPTO_LIBRARY="./ openssl/ libcrypto.a" -DOPENSSL_SSL_LIBRARY="./ openssl/ libssl.a" -DOPENSSL_INCLUDE_DIR="./ openssl/ include/ " -DCMAKE_OSX_ARCHITECTURES=x86_64
232234 cmake --build build --config Release --parallel
233235
234236 - name : Rename native
@@ -268,12 +270,12 @@ jobs:
268270 - name : Build koana
269271 shell : bash
270272 run : |
271- cmake -B build -DOPENSSL_ROOT_DIR=".\ openssl\ " -DOPENSSL_CRYPTO_LIBRARY=".\ openssl\ libcrypto.a" -DOPENSSL_SSL_LIBRARY=".\ openssl\ libssl.a" -DOPENSSL_INCLUDE_DIR=".\ openssl\ include\ " -DCMAKE_OSX_ARCHITECTURES=arm64
273+ cmake -B build -DOPENSSL_ROOT_DIR="./ openssl/ " -DOPENSSL_CRYPTO_LIBRARY="./ openssl/ libcrypto.a" -DOPENSSL_SSL_LIBRARY="./ openssl/ libssl.a" -DOPENSSL_INCLUDE_DIR="./ openssl/ include/ " -DCMAKE_OSX_ARCHITECTURES=arm64
272274 cmake --build build --config Release --parallel
273275
274276 - name : Rename native
275277 shell : bash
276- run : mv build/libkoana.dylib build/libkoana-macos -arm64.dylib
278+ run : mv build/libkoana.dylib build/libkoana-osx -arm64.dylib
277279
278280 - name : Publish Artifacts
279281 uses : actions/upload-artifact@v4
0 commit comments