diff --git a/.github/workflows/root-ci-config/buildconfig/mac12.txt b/.github/workflows/root-ci-config/buildconfig/mac13.txt similarity index 100% rename from .github/workflows/root-ci-config/buildconfig/mac12.txt rename to .github/workflows/root-ci-config/buildconfig/mac13.txt diff --git a/.github/workflows/root-ci.yml b/.github/workflows/root-ci.yml index d6accde274f9899c68e313753d637a65563e0ef1..d75a8d24e96adafb0b7c88483769e7532f41b18c 100644 --- a/.github/workflows/root-ci.yml +++ b/.github/workflows/root-ci.yml @@ -64,6 +64,79 @@ env: OS_REGION_NAME: 'cern' jobs: + build-macos: + if: github.repository_owner == 'root_project' + + permissions: + contents: read + + strategy: + fail-fast: false + matrix: + include: + - platform: mac13 + arch: ARM64 + config: Release + + name: ${{ matrix.platform }} ${{ matrix.arch }} ${{ matrix.config }} + + runs-on: # Using '[self-hosted, ..., ...]' does not work for some reason :) + - self-hosted + - macOS + - ${{ matrix.arch }} + - ${{ matrix.platform }} + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Pull Request Build + if: github.event_name == 'pull_request' + env: + INCREMENTAL: ${{ !contains(github.event.pull_request.labels.*.name, 'clean build') }} + run: ".github/workflows/root-ci-config/build_root.py + --buildtype ${{ matrix.config }} + --platform ${{ matrix.platform }} + --incremental $INCREMENTAL + --base_ref ${{ github.base_ref }} + --head_ref refs/pull/${{ github.event.pull_request.number }}/head + --repository ${{ github.server_url }}/${{ github.repository }}" + + - name: Workflow dispatch + if: github.event_name == 'workflow_dispatch' + run: ".github/workflows/root-ci-config/build_root.py + --buildtype ${{ matrix.config }} + --platform ${{ matrix.platform }} + --incremental ${{ inputs.incremental }} + --base_ref ${{ inputs.base_ref }} + --head_ref ${{ inputs.head_ref }} + --repository ${{ github.server_url }}/${{ github.repository }}" + + - name: Nightly build + if: github.event_name == 'schedule' + run: ".github/workflows/root-ci-config/build_root.py + --buildtype ${{ matrix.config }} + --platform ${{ matrix.platform }} + --incremental false + --base_ref ${{ github.ref_name }} + --repository ${{ github.server_url }}/${{ github.repository }}" + + - name: Update artifacts after push to release branch + if: github.event_name == 'push' + run: ".github/workflows/root-ci-config/build_root.py + --buildtype ${{ matrix.config }} + --platform ${{ matrix.platform }} + --incremental true + --base_ref ${{ github.ref_name }} + --repository ${{ github.server_url }}/${{ github.repository }}" + + - name: Upload test results + uses: actions/upload-artifact@v3 + with: + name: Test Results ${{ matrix.platform }} ${{ matrix.arch }} ${{ matrix.config }} + path: /tmp/workspace/build/TestResults.xml + + build-windows: if: github.repository_owner == 'root_project'