|
65 | 65 | - name: Install
|
66 | 66 | run: make install
|
67 | 67 |
|
68 |
| - macos: |
69 |
| - strategy: |
70 |
| - fail-fast: false |
71 |
| - matrix: |
72 |
| - version: [13, 14, 15] |
73 |
| - cfg: |
74 |
| - - {opts: --enable-debug} |
75 |
| - - {opts: --enable-optim --enable-generic} |
76 |
| - |
77 |
| - name: MacOS ${{ matrix.version }} with ${{ matrix.cfg.opts }} \ |
78 |
| - - ${{ github.workflow }} |
79 |
| - |
80 |
| - runs-on: macos-${{ matrix.version }} |
81 |
| - |
82 |
| - env: |
83 |
| - MPIRUN: mpirun |
84 |
| - MPICC: mpicc |
85 |
| - MPICXX: mpicxx -Wl,-ld_classic -Wno-unused-command-line-argument |
86 |
| - MPIFC: mpifort |
87 |
| - |
88 |
| - steps: |
89 |
| - - uses: actions/checkout@v4 |
90 |
| - |
91 |
| - - name: Install |
92 |
| - run: | |
93 |
| - brew install gcc m4 git bison hdf5 cmake wget autoconf automake \ |
94 |
| - open-mpi |
95 |
| -
|
96 |
| - - name: Symlink GCC & Fortran |
97 |
| - run: ./etc/actions/macos/link_fortran.sh "$(uname -p)" |
98 |
| - |
99 |
| - # - name: Setup tmate session |
100 |
| - # uses: mxschmitt/action-tmate@v3 |
101 |
| - |
102 |
| - - name: Set linker flags based on macOS version |
103 |
| - run: | |
104 |
| - if [ "${{ matrix.version }}" == "13" ]; then |
105 |
| - echo "CXX=g++ -Wl,-ld_classic -Wno-unused-command-line-argument" >> $GITHUB_ENV |
106 |
| - elif [ "${{ matrix.version }}" == "14" ]; then |
107 |
| - echo "CXX=g++ -Wl,-ld_classic -Wl,-commons,use_dylibs -Wno-unused-command-line-argument" >> $GITHUB_ENV |
108 |
| - elif [ "${{ matrix.version }}" == "15" ]; then |
109 |
| - echo "CXX=g++ -Wl,-commons,use_dylibs -Wno-unused-command-line-argument" >> $GITHUB_ENV |
110 |
| - fi |
111 |
| - |
112 |
| - - name: Configure |
113 |
| - run: | |
114 |
| - autoreconf -i |
115 |
| - ./configure --enable-download --with-mpi=openmpi ${{ matrix.cfg.opts }} \ |
116 |
| - --prefix="${HOME}/freefem" |
117 |
| - ./3rdparty/getall -a -o PETSc |
118 |
| -
|
119 |
| - # - name: Setup tmate session |
120 |
| - # uses: mxschmitt/action-tmate@v3 |
121 |
| - |
122 |
| - - name: PETSc |
123 |
| - run: | |
124 |
| - cd 3rdparty/ff-petsc |
125 |
| - make petsc-slepc |
126 |
| - cd - |
127 |
| - ./reconfigure |
128 |
| -
|
129 |
| - - name: Build |
130 |
| - run: make -j 3 |
131 |
| - |
132 |
| - - name: Check |
133 |
| - run: | |
134 |
| - make check -i |
135 |
| - echo "Tests failed: " $(grep :test-result examples/*/*.trs | grep FAIL | wc -l) |
136 |
| - ./etc/actions/failed_tests_logs.sh |
137 |
| -
|
138 |
| - - name: Install |
139 |
| - run: make install |
| 68 | +# No test for MacOS, the homebrew bottle open-mpi seems broken. |
0 commit comments