Skip to content

Commit 4f6030b

Browse files
committed
Revert "Test on macos"
1 parent 6814b6c commit 4f6030b

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
jobs:
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:

0 commit comments

Comments
 (0)