Skip to content

Commit

Permalink
Added build workflow for MacOS arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm4 committed Jan 22, 2024
1 parent 3ea67f4 commit 6749e93
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build-arm64-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build macOS-arm64

on:
workflow_dispatch:
push:
branches:
- main

jobs:
build:
runs-on: macos-13

steps:
- uses: actions/checkout@v3

- name: Configure CMake
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=Debug -DSL_DOWNLOAD_DATA=OFF -DCMAKE_OSX_ARCHITECTURES=arm64

- name: Build
run: cmake --build ${{ github.workspace }}/build -j $(sysctl -n hw.ncpu)
2 changes: 1 addition & 1 deletion .github/workflows/build-x86_64-macos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build macOS
name: Build macOS-x86

on:
workflow_dispatch:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Welcome to the SLProject4

[![Build Windows](https://github.com/cpvrlab/SLProject4/actions/workflows/build-x86_64-windows.yml/badge.svg)](https://github.com/cpvrlab/SLProject4/actions/workflows/build-x86_64-windows.yml)
[![Build macOS](https://github.com/cpvrlab/SLProject4/actions/workflows/build-x86_64-macos.yml/badge.svg)](https://github.com/cpvrlab/SLProject4/actions/workflows/build-x86_64-macos.yml)
[![Build macOS-x86](https://github.com/cpvrlab/SLProject4/actions/workflows/build-x86_64-macos.yml/badge.svg)](https://github.com/cpvrlab/SLProject4/actions/workflows/build-x86_64-macos.yml)
[![Build macOS-arm64](https://github.com/cpvrlab/SLProject4/actions/workflows/build-arm64-macos.yml/badge.svg)](https://github.com/cpvrlab/SLProject4/actions/workflows/build-arm64-macos.yml)
[![Build Emscripten](https://github.com/cpvrlab/SLProject4/actions/workflows/build-wasm-emscripten.yml/badge.svg)](https://github.com/cpvrlab/SLProject4/actions/workflows/build-wasm-emscripten.yml)
[![Build Online Docs](https://github.com/cpvrlab/SLProject4/actions/workflows/build-docs.yml/badge.svg)](https://github.com/cpvrlab/SLProject4/actions/workflows/build-docs.yml)

Expand Down

0 comments on commit 6749e93

Please sign in to comment.