Skip to content
Snippets Groups Projects
Commit 01984559 authored by olemorud's avatar olemorud Committed by Ole Morud
Browse files

[CI] Add macOS 13 job

parent 4cf0958b
No related branches found
No related tags found
No related merge requests found
...@@ -64,6 +64,79 @@ env: ...@@ -64,6 +64,79 @@ env:
OS_REGION_NAME: 'cern' OS_REGION_NAME: 'cern'
jobs: 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: build-windows:
if: github.repository_owner == 'root_project' if: github.repository_owner == 'root_project'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment