Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH Action CI: Restructure #948

Merged
merged 1 commit into from
May 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
set -eu -o pipefail

brew update
brew install openmpi
brew install libomp
brew install open-mpi
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