-
Notifications
You must be signed in to change notification settings - Fork 70
49 lines (40 loc) · 1.18 KB
/
example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: 'Example Suite'
on: [push, pull_request, workflow_dispatch]
jobs:
file-changes:
name: Detect File Changes
runs-on: 'ubuntu-latest'
outputs:
checkall: ${{ steps.changes.outputs.checkall }}
steps:
- name: Clone
uses: actions/checkout@v4
- name: Detect Changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: ".github/file-filter.yml"
github:
name: Github
if: needs.file-changes.outputs.checkall == 'true'
needs: file-changes
continue-on-error: true
runs-on: macos-latest
steps:
- name: Clone
uses: actions/checkout@v4
- name: Setup MacOS
run: |
brew install wget make python make cmake coreutils gcc@14
echo "CC=gcc-14" >> $GITHUB_ENV
echo "CXX=g++-14" >> $GITHUB_ENV
echo "FC=gfortran-14" >> $GITHUB_ENV
- name: (MacOS) Build OpenMPI
run: |
brew install mpich
- name: Build
run: |
/bin/bash mfc.sh build -j $(nproc) --no-debug --mpi
- name: Test
run: |
/bin/bash mfc.sh test -o Example -j $(nproc) -r --generate