commit 128d5d16105a578b7b90d4e9256448d283af40cd
parent 2a02f769e07d7bacd90b06681f5b54cb17054b23
Author: jatinchowdhury18 <jatinchowdhury18@gmail.com>
Date: Tue, 13 Apr 2021 09:39:23 -0700
Add CI workflow for ARM Mac compilation (#187)
* Add CI workflow for ARM Mac compilation
* Run CI on all paths for Pull Requests
Diffstat:
2 files changed, 40 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/arm-mac.yml b/.github/workflows/arm-mac.yml
@@ -0,0 +1,40 @@
+name: ARM-Mac
+
+on:
+ push:
+ branches:
+ - master
+ - develop
+ paths:
+ - 'Plugin/**'
+ pull_request:
+ branches:
+ - master
+ - develop
+
+ workflow_dispatch:
+
+jobs:
+ build_and_test:
+ if: contains(toJson(github.event.commits), '***NO_CI***') == false && contains(toJson(github.event.commits), '[ci skip]') == false && contains(toJson(github.event.commits), '[skip ci]') == false
+ name: Build plugin for Apple Silicon
+ runs-on: macos-latest
+
+ steps:
+ - name: Get latest CMake
+ uses: lukka/get-cmake@latest
+
+ - name: Checkout code
+ uses: actions/checkout@v2
+ with:
+ submodules: recursive
+
+ - name: Configure
+ shell: bash
+ working-directory: ${{github.workspace}}/Plugin
+ run: cmake -Bbuild -D"CMAKE_OSX_ARCHITECTURES=arm64;x86_64"
+
+ - name: Build
+ shell: bash
+ working-directory: ${{github.workspace}}/Plugin
+ run: cmake --build build --config Release --parallel 4
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
@@ -11,8 +11,6 @@ on:
branches:
- master
- develop
- paths:
- - 'Plugin/**'
workflow_dispatch: