Skip to content

Commit

Permalink
GH Action CI: Restructure
Browse files Browse the repository at this point in the history
Restructure the CI dirs and workflow names: split by OS.
Preparation for Windows.
  • Loading branch information
ax3l committed May 29, 2020
1 parent 5738a0a commit d23125c
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 21 deletions.
File renamed without changes.
File renamed without changes.
27 changes: 6 additions & 21 deletions .github/workflows/cmake.yml → .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: cmake
name: linux

on: [push, pull_request]

Expand All @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: .github/workflows/cmake/dependencies.sh
run: .github/workflows/dependencies/dependencies.sh
- name: Build & Install
run: |
mkdir build
Expand All @@ -28,7 +28,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: .github/workflows/cmake/dependencies.sh
run: .github/workflows/dependencies/dependencies.sh
- name: Build & Install
run: |
mkdir build
Expand All @@ -43,37 +43,22 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: .github/workflows/cmake/dependencies.sh
run: .github/workflows/dependencies/dependencies.sh
- name: Build & Install
run: |
mkdir build
cd build
cmake .. -DENABLE_TUTORIALS=ON -DENABLE_MPI=OFF
make -j 2 tutorials
# Build libamrex and all tutorials
tutorials-macos:
name: AppleClang@11.0 GFortran@9.3 [tutorials]
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: .github/workflows/cmake/dependencies_mac.sh
- name: Build & Install
run: |
mkdir build
cd build
cmake .. -DENABLE_TUTORIALS=ON
make -j 2 tutorials
# Build libamrex and all tutorials
tutorials-nofortran:
name: GNU@7.5 C++11 w/o Fortran [tutorials]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: .github/workflows/cmake/dependencies_nofortran.sh
run: .github/workflows/dependencies/dependencies_nofortran.sh
- name: Build & Install
run: |
mkdir build
Expand All @@ -91,7 +76,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: .github/workflows/cmake/dependencies_nvcc.sh
run: .github/workflows/dependencies/dependencies_nvcc.sh
- name: Build & Install
run: |
mkdir build
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: macos

on: [push, pull_request]

jobs:
# Build libamrex and all tutorials
tutorials-macos:
name: AppleClang@11.0 GFortran@9.3 [tutorials]
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: .github/workflows/dependencies/dependencies_mac.sh
- name: Build & Install
run: |
mkdir build
cd build
cmake .. -DENABLE_TUTORIALS=ON
make -j 2 tutorials

0 comments on commit d23125c

Please sign in to comment.