File tree 2 files changed +16
-8
lines changed
2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 68
68
target : aarch64-unknown-linux-musl
69
69
linker : gcc-aarch64-linux-gnu
70
70
cross : true
71
- - build : macos
71
+ - build : macos-x86
72
72
os : macos-latest
73
73
cross : false
74
+ # https://docs.github.com/en/actions/using-github-hosted-runners/about-larger-runners/about-larger-runners
75
+ # macos-latest-xlarge or macos-13-xlarge are running on arm64 (m1)
76
+ - build : macos-aarch64
77
+ os : macos-latest-xlarge
78
+ cross : false
74
79
- build : windows
75
80
os : windows-latest
76
81
cross : false
@@ -140,14 +145,21 @@ jobs:
140
145
if : matrix.os == 'windows-latest'
141
146
shell : bash
142
147
run : |
143
- asset_name="test-server-$VERSION-windows- x86_64.zip"
148
+ asset_name="test-server-$VERSION-x86_64-windows .zip"
144
149
echo "ASSET_NAME=$asset_name" >> $GITHUB_ENV
145
150
7z a -mm=Deflate64 -mfb=258 -mpass=15 $asset_name ./target/release/test-server.exe
146
151
147
- - name : Compress for macOS
152
+ - name : Compress for macOS x86
148
153
if : matrix.os == 'macos-latest'
149
154
run : |
150
- asset_name="test-server-$VERSION-apple-darwin-x86_64.tar.xz"
155
+ asset_name="test-server-$VERSION-x86_64-apple-darwin.tar.xz"
156
+ echo "ASSET_NAME=$asset_name" >> $GITHUB_ENV
157
+ XZ_OPT=-9 tar -C ./target/release/ -cJf $asset_name test-server
158
+
159
+ - name : Compress for macOS aarch64
160
+ if : matrix.os == 'macos-latest-xlarge'
161
+ run : |
162
+ asset_name="test-server-$VERSION-aarch64-apple-darwin.tar.xz"
151
163
echo "ASSET_NAME=$asset_name" >> $GITHUB_ENV
152
164
XZ_OPT=-9 tar -C ./target/release/ -cJf $asset_name test-server
153
165
Original file line number Diff line number Diff line change @@ -146,10 +146,6 @@ jobs:
146
146
use-cross : true
147
147
command : build
148
148
args : -q --release --target ${{ matrix.target }}
149
- # uses: ./.github/actions/linux-x86_64-musl/
150
- # if: matrix.cross
151
- # with:
152
- # args: cross build -q --release --target ${{ matrix.target }}
153
149
154
150
- name : Build for Linux
155
151
uses : ./.github/actions/linux-x86_64-musl/
You can’t perform that action at this time.
0 commit comments