Skip to content

Commit f706525

Browse files
committed
Fix all github actions
- remove shallow water actions
1 parent be201b6 commit f706525

10 files changed

Lines changed: 32 additions & 758 deletions

File tree

.github/workflows/mac.yml

Lines changed: 1 addition & 207 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ jobs:
171171

172172
bryan-2d:
173173
if: github.event.pull_request.draft == false
174-
runs-on: macos-12
174+
runs-on: [self-hosted, macOS]
175175
needs: [straka-2d]
176176
steps:
177177
- uses: actions/checkout@v3
@@ -219,209 +219,3 @@ jobs:
219219
with:
220220
name: bryan_output.nc
221221
path: ${{github.workspace}}/examples/2019-Li-snap/bryan_output.nc
222-
223-
shallow-xy:
224-
if: github.event.pull_request.draft == false
225-
runs-on: [self-hosted, macOS, ARM64]
226-
steps:
227-
- uses: actions/checkout@v3
228-
with:
229-
lfs: false
230-
231-
- name: set up python libraries
232-
run: pip3 install -r requirements.txt
233-
234-
- name: check if artifact exists
235-
run: echo "ARTIFACT_EXISTS=$(./tools/check_artifact.sh swxy_output.nc)" >> $GITHUB_ENV
236-
237-
- uses: actions/download-artifact@v4.1.7
238-
if: env.ARTIFACT_EXISTS == 'true'
239-
with:
240-
name: swxy_output.nc
241-
path: ${{github.workspace}}/examples/2020-polar-vortex/
242-
243-
- name: fetch the needed lfs file
244-
if: env.ARTIFACT_EXISTS == 'false'
245-
run: git lfs pull -I examples/2020-Li-polar-vortex/swxy_output.nc
246-
247-
- name: set up libraries
248-
run: brew bundle
249-
250-
- name: set up python libraries
251-
run: pip3 install -r requirements.txt
252-
253-
- name: create build directory
254-
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
255-
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
256-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DNETCDF=ON -DTASK=vortex
257-
258-
- name: Build
259-
# Build your program with the given configuration
260-
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -- -j3
261-
262-
- name: run simulation
263-
working-directory: ${{github.workspace}}/build/bin
264-
run: mpiexec -n 4 ./shallow_xy.release -i shallow_water.inp
265-
266-
- name: combile outputs
267-
working-directory: ${{github.workspace}}/build/bin
268-
run: ./combine.py -o test
269-
270-
- name: compare result
271-
run: >
272-
python3 ${{github.workspace}}/examples/2020-Li-polar-vortex/test_shallow_xy.py
273-
${{github.workspace}}/build/bin/sw-test-main.nc
274-
${{github.workspace}}/examples/2020-Li-polar-vortex/swxy_output.nc
275-
276-
- uses: actions/upload-artifact@v3
277-
if: env.ARTIFACT_EXISTS == 'false'
278-
with:
279-
name: swxy_output.nc
280-
path: ${{github.workspace}}/examples/2020-Li-polar-vortex/swxy_output.nc
281-
282-
polar-vortex:
283-
if: github.event.pull_request.draft == false
284-
runs-on: macos-12
285-
steps:
286-
- uses: actions/checkout@v3
287-
with:
288-
lfs: false
289-
290-
- name: check if artifact exists
291-
run: echo "ARTIFACT_EXISTS=$(./tools/check_artifact.sh intruder_output.nc)" >> $GITHUB_ENV
292-
293-
- uses: actions/download-artifact@v4.1.7
294-
if: env.ARTIFACT_EXISTS == 'true'
295-
with:
296-
name: intruder_output.nc
297-
path: ${{github.workspace}}/examples/2020-Li-polar-vortex/
298-
299-
- name: fetch the needed lfs file
300-
if: env.ARTIFACT_EXISTS == 'false'
301-
run: git lfs pull -I examples/2020-Li-polar-vortex/intruder_output.nc
302-
303-
- name: set up libraries
304-
run: brew bundle
305-
306-
- name: set up python libraries
307-
run: pip3 install -r requirements.txt
308-
309-
- name: create build directory
310-
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
311-
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
312-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_Fortran_COMPILER=gfortran-14 -DTASK=vortex
313-
314-
- name: Build
315-
# Build your program with the given configuration
316-
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -- -j3
317-
318-
- name: run simulation
319-
working-directory: ${{github.workspace}}/build/bin
320-
run: mpiexec -n 3 ./polar_vortex.release -i fig_g_intruder.inp
321-
322-
- name: combile outputs
323-
working-directory: ${{github.workspace}}/build/bin
324-
run: ./combine.py -o test
325-
326-
- name: compare result
327-
run: >
328-
python3 ${{github.workspace}}/examples/2020-Li-polar-vortex/test_polar_vortex.py
329-
${{github.workspace}}/build/bin/intruder-test-main.nc
330-
${{github.workspace}}/examples/2020-Li-polar-vortex/intruder_output.nc
331-
332-
- uses: actions/upload-artifact@v3
333-
if: env.ARTIFACT_EXISTS == 'false'
334-
with:
335-
name: intruder_output.nc
336-
path: ${{github.workspace}}/examples/2020-Li-polar-vortex/intruder_output.nc
337-
338-
juno-mwr:
339-
if: github.event.pull_request.draft == false
340-
runs-on: [self-hosted, macOS, ARM64]
341-
steps:
342-
- uses: actions/checkout@v3
343-
with:
344-
lfs: false
345-
346-
- name: set up libraries
347-
run: brew bundle
348-
349-
- name: install python modules
350-
run: pip3 install -r requirements.txt
351-
352-
- name: create build directory
353-
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
354-
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
355-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DTASK=juno
356-
357-
- name: build
358-
# Build your program with the given configuration
359-
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -- -j2
360-
361-
- name: run simulation
362-
working-directory: ${{github.workspace}}/build/bin
363-
run: ./juno_mwr.release -i juno_mwr.inp
364-
365-
- name: combile outputs
366-
working-directory: ${{github.workspace}}/build/bin
367-
run: ./combine.py -o test
368-
369-
- name: Test
370-
working-directory: ${{github.workspace}}/examples/2024-JHu-juno-mwr
371-
run: echo "cheers"
372-
373-
cubed-blast:
374-
if: github.event.pull_request.draft == false
375-
runs-on: [self-hosted, macOS, ARM64]
376-
steps:
377-
- uses: actions/checkout@v3
378-
with:
379-
lfs: false
380-
381-
- name: install python modules
382-
run: pip3 install -r requirements.txt
383-
384-
- name: check if artifact exists
385-
run: echo "ARTIFACT_EXISTS=$(./tools/check_artifact.sh test_blast_output.nc)" >> $GITHUB_ENV
386-
387-
- uses: actions/download-artifact@v4.1.7
388-
if: env.ARTIFACT_EXISTS == 'true'
389-
with:
390-
name: test_blast_output.nc
391-
path: ${{github.workspace}}/examples/2023-Chen-exo3/
392-
393-
- name: fetch the needed lfs file
394-
if: env.ARTIFACT_EXISTS == 'false'
395-
run: git lfs pull -I examples/2023-Chen-exo3/test_blast_output.nc
396-
397-
- name: set up libraries
398-
run: brew bundle
399-
400-
- name: create build directory
401-
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
402-
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
403-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DNETCDF=ON -DTASK=exo2
404-
405-
- name: Build
406-
# Build your program with the given configuration
407-
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -- -j4
408-
409-
- name: run simulation
410-
working-directory: ${{github.workspace}}/build/bin
411-
run: mpiexec -n 6 ./test_blast.release -i test_blast.inp
412-
413-
- name: combile outputs
414-
working-directory: ${{github.workspace}}/build/bin
415-
run: python3 combine.py -o test
416-
417-
- name: compare result
418-
run: >
419-
python3 ${{github.workspace}}/examples/2023-Chen-exo3/test_blast.py
420-
${{github.workspace}}/build/bin/blast_48_cubed-test-main.nc
421-
${{github.workspace}}/examples/2023-Chen-exo3/test_blast_output.nc
422-
423-
- uses: actions/upload-artifact@v3
424-
if: env.ARTIFACT_EXISTS == 'false'
425-
with:
426-
name: swxy_output.nc
427-
path: ${{github.workspace}}/examples/2020-Li-polar-vortex/test_blast_output.nc

0 commit comments

Comments
 (0)