Skip to content

Commit

Permalink
Update build-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ax-6 authored Sep 30, 2024
1 parent a4e0416 commit c130c0c
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
arch: [x86, x64]
arch: [x86, x64, arm64]
include:
- os: ubuntu-latest
arch: x86
Expand All @@ -22,6 +22,10 @@ jobs:
arch: x64
c_compiler: gcc
cpp_compiler: g++
- os: ubuntu-latest
arch: arm64
c_compiler: gcc
cpp_compiler: g++
- os: windows-latest
arch: x86
c_compiler: cl
Expand All @@ -30,6 +34,10 @@ jobs:
arch: x64
c_compiler: cl
cpp_compiler: cl
- os: windows-latest
arch: arm64
c_compiler: cl
cpp_compiler: cl
- os: macos-latest
arch: x86
c_compiler: clang
Expand All @@ -38,6 +46,10 @@ jobs:
arch: x64
c_compiler: clang
cpp_compiler: clang++
- os: macos-latest
arch: arm64
c_compiler: clang
cpp_compiler: clang++

steps:
- uses: actions/checkout@v3
Expand All @@ -58,24 +70,24 @@ jobs:
- name: Compress Release Asset (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
zip -r aq-${{ github.event.release.tag_name }}-${{ matrix.os }}-${{ matrix.arch }}.zip build
zip -r aq-${{ github.event.release.tag_name }}-${{ matrix.os/'-latest'/'' }}-${{ matrix.arch }}.zip build
- name: Compress Release Asset (Windows)
if: matrix.os == 'windows-latest'
run: |
powershell Compress-Archive -Path build\* -DestinationPath aq-${{ github.event.release.tag_name }}-${{ matrix.os }}-${{ matrix.arch }}.zip
powershell Compress-Archive -Path build\* -DestinationPath aq-${{ github.event.release.tag_name }}-${{ matrix.os/'-latest'/'' }}-${{ matrix.arch }}.zip
- name: Compress Release Asset (macOS)
if: matrix.os == 'macos-latest'
run: |
zip -r aq-${{ github.event.release.tag_name }}-${{ matrix.os }}-${{ matrix.arch }}.zip build
zip -r aq-${{ github.event.release.tag_name }}-${{ matrix.os/'-latest'/'' }}-${{ matrix.arch }}.zip build
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: aq-${{ github.event.release.tag_name }}-${{ matrix.os }}-${{ matrix.arch }}.zip
asset_name: aq-${{ github.event.release.tag_name }}-${{ matrix.os }}-${{ matrix.arch }}
asset_path: aq-${{ github.event.release.tag_name }}-${{ matrix.os/'-latest'/'' }}-${{ matrix.arch }}.zip
asset_name: aq-${{ github.event.release.tag_name }}-${{ matrix.os/'-latest'/'' }}-${{ matrix.arch }}.zip
asset_content_type: application/zip

0 comments on commit c130c0c

Please sign in to comment.