Skip to content

Commit ec969e5

Browse files
authored
Update CI workflow to include macOS support
Add conditional environment variable for macOS builds.
1 parent 9b4790e commit ec969e5

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
default: false
2020
type: boolean
2121

22+
env:
23+
RUN_MACOS: ${{ !(github.event_name == 'pull_request' ||
24+
(github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/v')) ||
25+
(github.event_name == 'workflow_dispatch' && inputs.full_build != 'true')) }}
26+
2227
jobs:
2328
build-and-test:
2429
name: Run on ${{ matrix.os }} with SOFA ${{ matrix.sofa_branch }} / MeshRefinement=${{ matrix.with_mesh_refinement }}
@@ -42,7 +47,9 @@ jobs:
4247
fail-fast: false
4348

4449
matrix:
45-
os: [ubuntu-22.04, windows-2022]
50+
os: ${{ fromJSON(env.RUN_MACOS == 'true'
51+
&& '["ubuntu-22.04","windows-2022","macos-14"]'
52+
|| '["ubuntu-22.04","windows-2022"]') }}
4653

4754
sofa_branch: [master]
4855
with_mesh_refinement: [ON, OFF]

0 commit comments

Comments
 (0)