name: C/C++ Release candidate arm macos

on:
  push:
    branches:
      - rc

jobs:
  build:

    runs-on: macos-14

    steps:
    - uses: actions/checkout@v2
      with:
        ref: 'rc'
    - name: build deps & slicer
      run: ./BuildMacOS.sh -ia
    - name: Upload artifact
      uses: actions/upload-artifact@v1.0.0
      with:
        name: rc_arm_macos.dmg
        path: build/${{ github.event.repository.name }}.dmg
    - name: Upload artifact
      uses: actions/upload-artifact@v1.0.0
      with:
        name: rc_arm_macos.tar
        path: build/${{ github.event.repository.name }}.tar
