Skip to content

Commit

Permalink
add architecture info to package name
Browse files Browse the repository at this point in the history
  • Loading branch information
matyalatte committed Oct 5, 2024
1 parent 6d95380 commit c1cdc5c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ jobs:
build:
strategy:
matrix:
os: [windows-2022, ubuntu-20.04, macos-14]
include:
- os: windows-2022
arch_suffix: -x64
- os: ubuntu-20.04
arch_suffix: -x64
- os: macos-14
arch_suffix: ""
runs-on: ${{ matrix.os }}
needs: setup
steps:
Expand Down Expand Up @@ -84,10 +90,10 @@ jobs:
with:
directory: 'release'
type: 'zip'
filename: '${{ env.ZIP_NAME }}_${{ needs.setup.outputs.tag }}_${{ runner.os }}.zip'
filename: '${{ env.ZIP_NAME }}_${{ needs.setup.outputs.tag }}_${{ runner.os }}${{ matrix.arch_suffix }}.zip'
exclusions: '*.git* .gitignore'

- name: Upload Release Asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ needs.setup.outputs.tag }} release/${{ env.ZIP_NAME }}_${{ needs.setup.outputs.tag }}_${{ runner.os }}.zip
run: gh release upload ${{ needs.setup.outputs.tag }} release/${{ env.ZIP_NAME }}_${{ needs.setup.outputs.tag }}_${{ runner.os }}${{ matrix.arch_suffix }}.zip

0 comments on commit c1cdc5c

Please sign in to comment.