File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 1010jobs :
1111 build :
1212 name : Build Zstd
13- runs-on : macos -latest
13+ runs-on : ubuntu -latest
1414
1515 steps :
1616 - name : Clone zstd repo
@@ -23,22 +23,23 @@ jobs:
2323 shell : bash
2424 run : |
2525 cd build/cmake
26- mkdir build ../../output
27- cd build
28- cmake $COMMON_CMAKE_FLAGS "-DCMAKE_OSX_ARCHITECTURES=arm64;arm64e;x86_64;x86_64h" ..
29- cmake --build . -j 4 --config Release
30- cp lib/libzstd.dylib ../../../output/libzstd.dylib
26+ mkdir -p ../../output/x64
27+ mkdir build-x64
28+ cd build-x64
29+ cmake $COMMON_CMAKE_FLAGS ..
30+ cmake --build . -j 4
31+ cp lib/libzstd.so ../../../output/x64/libzstd.so
3132 cd ..
3233
3334 - name : Publish Artifacts
3435 uses : actions/upload-artifact@v5
3536 with :
36- name : zstd-macos -latest
37+ name : zstd-ubuntu -latest
3738 path : output
3839
3940 test :
4041 name : Test discord-zstd-java
41- runs-on : macos -latest
42+ runs-on : ubuntu -latest
4243 needs : [build]
4344
4445 steps :
@@ -60,13 +61,13 @@ jobs:
6061 uses : actions/download-artifact@v5
6162 with :
6263 path : temp
63- pattern : zstd-macos -latest
64+ pattern : zstd-ubuntu -latest
6465 merge-multiple : true
6566
6667 - name : Move Artifacts
6768 run : |
68- mkdir -p natives/src/main/resources/natives/darwin
69- cp temp/libzstd.dylib natives/src/main/resources/natives/darwin /libzstd.dylib
69+ mkdir -p natives/src/main/resources/natives/linux-x86-64
70+ cp temp/x64/ libzstd.so natives/src/main/resources/natives/linux-x86-64 /libzstd.so
7071
7172 - name : Run tests
7273 env :
You can’t perform that action at this time.
0 commit comments