Skip to content

Commit

Permalink
[ ci ] Support building of macOS x64 executable and differentiate it …
Browse files Browse the repository at this point in the history
…from the current arm64 one
  • Loading branch information
banacorn committed Dec 4, 2024
1 parent 1db7df3 commit 87c1036
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest, macos-13, windows-latest]
fail-fast: false
steps:

Expand Down Expand Up @@ -277,12 +277,17 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [[ ${{ runner.os }} == "Linux" ]]; then
if [[ ${{ matrix.os }} == "ubuntu-latest" ]]; then
gh release upload ${{ github.ref_name }} als-ubuntu.zip --clobber
fi
if [[ ${{ runner.os }} == "macOS" ]]; then
gh release upload ${{ github.ref_name }} als-macos.zip --clobber
# arm64 macos
if [[ ${{ matrix.os }} == "macos-latest" ]]; then
gh release upload ${{ github.ref_name }} als-macos-arm64.zip --clobber
fi
# x64 macos
if [[ ${{ matrix.os }} == "macos-13" ]]; then
gh release upload ${{ github.ref_name }} als-macos-x64.zip --clobber
fi
if [[ ${{ runner.os }} == "Windows" ]]; then
if [[ ${{ matrix.os }} == "windows-latest" ]]; then
gh release upload ${{ github.ref_name }} als-windows.zip --clobber
fi

0 comments on commit 87c1036

Please sign in to comment.