Skip to content

Commit

Permalink
ci: add aarch64-apple-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoboy authored Feb 8, 2025
1 parent 32e52ca commit 373a8c5
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ env:
RELEASE_DIR: artifacts
GITHUB_REF: '${{ github.ref }}'
WINDOWS_TARGET: x86_64-pc-windows-msvc
MACOS_TARGET: x86_64-apple-darwin
MACOS_AMD64_TARGET: x86_64-apple-darwin
MACOS_ARM64_TARGET: aarch64-apple-darwin
LINUX_AMD64_TARGET: x86_64-unknown-linux-musl
LINUX_ARM64_TARGET: aarch64-unknown-linux-musl

Expand All @@ -33,6 +34,9 @@ jobs:
- target: x86_64-apple-darwin
os: macos-latest
rust: stable
- target: aarch64-apple-darwin
os: macos-latest
rust: stable
- target: x86_64-pc-windows-msvc
os: windows-latest
rust: stable
Expand Down Expand Up @@ -141,10 +145,14 @@ jobs:
with:
name: ${{ env.WINDOWS_TARGET }}

- name: Download MacOS tarball
- name: Download ARM64 MacOS tarball
uses: actions/download-artifact@v4.1.7
with:
name: ${{ env.MACOS_TARGET }}
name: ${{ env.MACOS_ARM64_TARGET }}
- name: Download AMD64 MacOS tarball
uses: actions/download-artifact@v4.1.7
with:
name: ${{ env.MACOS_AMD64_TARGET }}

- name: Release Linux amd64 tarball
uses: actions/upload-release-asset@v1
Expand Down Expand Up @@ -186,12 +194,21 @@ jobs:
asset_content_type: application/vnd.microsoft.portable-executable
asset_name: wasm-pack-init.exe

- name: Release MacOS tarball
- name: Release AMD64 MacOS tarball
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./wasm-pack-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_AMD64_TARGET }}.tar.gz
asset_content_type: application/gzip
asset_name: wasm-pack-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_AMD64_TARGET }}.tar.gz
- name: Release ARM64 MacOS tarball
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./wasm-pack-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_TARGET }}.tar.gz
asset_path: ./wasm-pack-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_ARM64_TARGET }}.tar.gz
asset_content_type: application/gzip
asset_name: wasm-pack-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_TARGET }}.tar.gz
asset_name: wasm-pack-${{ steps.get_version.outputs.VERSION }}-${{ env.MACOS_ARM64_TARGET }}.tar.gz

0 comments on commit 373a8c5

Please # to comment.