File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121
2222
2323jobs :
24+ prepare :
25+ runs-on : ubuntu-latest
26+ outputs :
27+ os_list : ${{ steps.set.outputs.os_list }}
28+ steps :
29+ - id : set
30+ run : |
31+ if [[ "${{ github.event_name }}" == "pull_request" ]] ||
32+ [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" != refs/tags/v* ]] ||
33+ [[ "${{ github.event_name }}" == "workflow_dispatch" && "${{ inputs.full_build }}" != "true" ]]; then
34+ echo 'os_list=["ubuntu-22.04","windows-2022"]' >> $GITHUB_OUTPUT
35+ else
36+ echo 'os_list=["ubuntu-22.04","windows-2022","macos-14"]' >> $GITHUB_OUTPUT
37+ fi
38+
2439 build-and-test :
2540 name : Run on ${{ matrix.os }} with SOFA ${{ matrix.sofa_branch }} / MeshRefinement=${{ matrix.with_mesh_refinement }}
2641
4358 fail-fast : false
4459
4560 matrix :
46- os : ${{ fromJSON(
47- (github.event_name == 'pull_request' ||
48- (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/v')) ||
49- (github.event_name == 'workflow_dispatch' && inputs.full_build != 'true'))
50- && '["ubuntu-22.04","windows-2022"]'
51- || '["ubuntu-22.04","windows-2022","macos-14"]'
52- ) }}
61+ os : ${{ fromJSON(needs.prepare.outputs.os_list) }}
5362
5463 sofa_branch : [master]
5564 with_mesh_refinement : [ON, OFF]
You can’t perform that action at this time.
0 commit comments