77 - " **.cmake"
88 - " **.f90"
99 - " .github/workflows/ci.yml"
10- release :
11- types : [published]
12-
1310
1411jobs :
1512
3835 - name : build examples
3936 run : cmake --build Examples/build --parallel
4037 - name : Test examples
41- run : ctest --parallel 2 --output-on-failure
42- working-directory : Examples/build
43-
44- - name : create package
45- if : github.event.action == 'published'
46- run : cpack --config build/CPackConfig.cmake
47-
48- - name : Upload artifact
49- if : github.event.action == 'published'
50- uses : actions/upload-artifact@v1
51- with :
52- name : binary-archive
53- path : build/package
54-
55- - name : get version
56- if : github.event.action == 'published'
57- id : get_version
58- run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
59-
60- - name : Upload release asset
61- if : github.event.action == 'published'
62- uses : actions/upload-release-asset@v1
63- env :
64- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65- with :
66- upload_url : ${{ github.event.release.upload_url }}
67- asset_path : build/package/nc4fortran-${{ steps.get_version.outputs.VERSION }}-Linux.tar.zst
68- asset_name : nc4fortran-${{ steps.get_version.outputs.VERSION }}-Linux.tar.zst
69- asset_content_type : application/zip
38+ run : ctest --test-dir Examples/build --output-on-failure
7039
7140
7241 linuxCmake314 :
@@ -96,12 +65,13 @@ jobs:
9665
9766
9867 mac :
68+ needs : linux
9969 runs-on : macos-latest
10070 timeout-minutes : 20
10171 env :
10272 HOMEBREW_NO_INSTALL_CLEANUP : 1
103- CC : gcc-10
104- FC : gfortran-10
73+ CC : gcc-11
74+ FC : gfortran-11
10575 CTEST_SITE : GitHub_MacOS
10676 CTEST_PARALLEL_LEVEL : 3
10777
@@ -117,32 +87,4 @@ jobs:
11787
11888 - run : cmake -S Examples -B Examples/build -Dnc4fortran_ROOT=~
11989 - run : cmake --build Examples/build --parallel
120- - run : ctest --parallel 2 --output-on-failure
121- working-directory : Examples/build
122-
123- - name : create package
124- if : github.event.action == 'published'
125- run : cpack --config build/CPackConfig.cmake
126-
127- - name : Upload artifact
128- if : github.event.action == 'published'
129- uses : actions/upload-artifact@v1
130- with :
131- name : binary-archive
132- path : build/package
133-
134- - name : get version
135- if : github.event.action == 'published'
136- id : get_version
137- run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
138-
139- - name : Upload release asset
140- if : github.event.action == 'published'
141- uses : actions/upload-release-asset@v1
142- env :
143- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
144- with :
145- upload_url : ${{ github.event.release.upload_url }}
146- asset_path : build/nc4fortran-${{ steps.get_version.outputs.VERSION }}-Darwin.tar.zst
147- asset_name : nc4fortran-${{ steps.get_version.outputs.VERSION }}-Darwin.tar.zst
148- asset_content_type : application/zip
90+ - run : ctest --test-dir Examples/build --output-on-failure
0 commit comments