Skip to content

Commit

Permalink
Add aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
jareddlc committed Sep 7, 2024
1 parent e044476 commit f6d3dfb
Showing 1 changed file with 34 additions and 7 deletions.
41 changes: 34 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
name: windows-binary
path: target\release\gut_cert_check.dll

build_macos:
build_macos_x86:
runs-on: macos-latest

steps:
Expand All @@ -57,15 +57,37 @@ jobs:
- name: Build
run: cargo build --release

- name: Rename binary
run: mv target/release/libgut_cert_check.dylib target/release/libgut_cert_check-x86.dylib

- name: Upload MacOS Artifact
uses: actions/upload-artifact@v2
with:
name: macos-x86-binary
path: target/release/libgut_cert_check-x86.dylib

build_macos_aarch64:
runs-on: macos-14

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Build
run: cargo build --release

- name: Rename binary
run: mv target/release/libgut_cert_check.dylib target/release/libgut_cert_check-aarch64.dylib

- name: Upload MacOS Artifact
uses: actions/upload-artifact@v2
with:
name: macos-binary
path: target/release/libgut_cert_check.dylib
name: macos-aarch64-binary
path: target/release/libgut_cert_check-aarch64.dylib

release_all:
runs-on: ubuntu-latest
needs: [build_linux, build_windows, build_macos]
needs: [build_linux, build_windows, build_macos_x86, build_macos_aarch64]

steps:
- name: Download Linux Artifact
Expand All @@ -76,10 +98,14 @@ jobs:
uses: actions/download-artifact@v2
with:
name: windows-binary
- name: Download MacOS Artifact
- name: Download MacOS (x86) Artifact
uses: actions/download-artifact@v2
with:
name: macos-x86-binary
- name: Download MacOS (Arm64) Artifact
uses: actions/download-artifact@v2
with:
name: macos-binary
name: macos-aarch64-binary

- name: Release
uses: "marvinpinto/action-automatic-releases@latest"
Expand All @@ -90,4 +116,5 @@ jobs:
files: |
libgut_cert_check.so
gut_cert_check.dll
libgut_cert_check.dylib
libgut_cert_check-x86.dylib
libgut_cert_check-aarch64.dylib

0 comments on commit f6d3dfb

Please sign in to comment.