arm-mac.yml (961B)
1 name: ARM-Mac 2 3 on: 4 push: 5 branches: 6 - master 7 - develop 8 paths: 9 - 'Plugin/**' 10 pull_request: 11 branches: 12 - master 13 - develop 14 15 workflow_dispatch: 16 17 jobs: 18 build_and_test: 19 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 20 name: Build plugin for Apple Silicon 21 runs-on: macos-latest 22 23 steps: 24 - name: Get latest CMake 25 uses: lukka/get-cmake@latest 26 27 - name: Checkout code 28 uses: actions/checkout@v2 29 with: 30 submodules: recursive 31 32 - name: Configure 33 shell: bash 34 working-directory: ${{github.workspace}}/Plugin 35 run: cmake -Bbuild -D"CMAKE_OSX_ARCHITECTURES=arm64;x86_64" 36 37 - name: Build 38 shell: bash 39 working-directory: ${{github.workspace}}/Plugin 40 run: cmake --build build --config Release --parallel 4