Skip to content

Commit

Permalink
Add mac-14 for arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
nxpfrankli authored Apr 8, 2024
1 parent 88ce01e commit 0e54b75
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/macOS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ on:
jobs:
build:
name: macOS Build
runs-on: macos-latest

runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-14
- macos-12

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -30,14 +35,19 @@ jobs:
git fetch --tags --force # Retrieve annotated tags. #issue 290
export PATH="/usr/local/Cellar/pkg-config/0.29.2_3/bin:${PATH}"; pkg-config --list-all; cmake -DOPENSSL_ROOT_DIR=$(brew --prefix)/opt/openssl . ; make
- name: Rename
run: cp uuu/uuu uuu_mac

- name: Rename_x86
if: matrix.os == 'macos-12'
run: cp uuu/uuu uuu_mac_x86

- name: Rename_arm
if: matrix.os == 'macos-14'
run: cp uuu/uuu uuu_mac_arm

- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: uuu_mac
path: uuu/uuu
path: uuu_mac_*

- name: Create or Update Release
if: github.ref_type == 'tag'
Expand All @@ -48,4 +58,4 @@ jobs:
commit: ${{ github.sha }}
allowUpdates: true
prerelease: true
artifacts: "uuu_mac"
artifacts: "uuu_mac_*"

0 comments on commit 0e54b75

Please sign in to comment.