Skip to content

Commit

Permalink
Testing new workflow to build for macos/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaa committed Dec 3, 2024
1 parent 2adea52 commit 21d6755
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build-macos-arm64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build macOS arm64 Project

on:
push:
branches:
- automation
pull_request:

jobs:
build-macos-arm64:
runs-on: macos-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
submodules: true

- name: Install Dependencies
run: |
# Install essential tools
brew update
brew install cmake ninja llvm boost
- name: Configure Build
run: |
mkdir -p build
pushd build
cmake .. -DCMAKE_BUILD_TYPE=Release -G "Ninja" \
-DCMAKE_OSX_ARCHITECTURES=arm64 \
-DBOOST_ROOT=$(brew --prefix boost)
popd
- name: Build Project
run: |
pushd build
cmake --build .
popd
- name: Prepare Artifacts
run: |
mkdir -p artifacts
cp build/bin/* artifacts/
- name: Archive Artifacts
uses: actions/upload-artifact@v4
with:
name: macos-arm64-build
path: artifacts/*
retention-days: 1

0 comments on commit 21d6755

Please sign in to comment.