Skip to content

Commit cb12130

Browse files
committed
[ ci ] Support building of macOS x64 executable and differentiate it from the current arm64 one
1 parent 1db7df3 commit cb12130

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/test.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
strategy:
2121
matrix:
22-
os: [ubuntu-latest, macos-latest, windows-latest]
22+
os: [ubuntu-latest, macos-latest, macos-latest-large, windows-latest]
2323
fail-fast: false
2424
steps:
2525

@@ -277,12 +277,17 @@ jobs:
277277
env:
278278
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
279279
run: |
280-
if [[ ${{ runner.os }} == "Linux" ]]; then
280+
if [[ ${{ matrix.os }} == "ubuntu-latest" ]]; then
281281
gh release upload ${{ github.ref_name }} als-ubuntu.zip --clobber
282282
fi
283-
if [[ ${{ runner.os }} == "macOS" ]]; then
284-
gh release upload ${{ github.ref_name }} als-macos.zip --clobber
283+
# arm64 macos
284+
if [[ ${{ matrix.os }} == "macos-latest" ]]; then
285+
gh release upload ${{ github.ref_name }} als-macos-arm64.zip --clobber
286+
fi
287+
# x64 macos
288+
if [[ ${{ matrix.os }} == "macos-latest-large" ]]; then
289+
gh release upload ${{ github.ref_name }} als-macos-x64.zip --clobber
285290
fi
286-
if [[ ${{ runner.os }} == "Windows" ]]; then
291+
if [[ ${{ matrix.os }} == "windows-latest" ]]; then
287292
gh release upload ${{ github.ref_name }} als-windows.zip --clobber
288293
fi

0 commit comments

Comments
 (0)