Skip to content

Commit

Permalink
Merge pull request #203 from jyoung3131/ci_fixes
Browse files Browse the repository at this point in the history
Split CI build workflows into separate files. Added MPI backend test.
  • Loading branch information
plavin authored Aug 5, 2024
2 parents a94e6e5 + f3fff9a commit 4a78a54
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 34 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build-cuda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build and Test CUDA Backend

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '30 8 * * *'

jobs:
build-cuda:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Run batch file
run: cd tests/misc && chmod +x run-crnch-cuda.sh && sbatch run-crnch-cuda.sh

25 changes: 25 additions & 0 deletions .github/workflows/build-mpi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and Test MPI Backend

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '30 8 * * *'

jobs:
build-and-run-mpi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@latest #Add OpenMPI to test against
with:
packages: openmpi-bin libopenmpi-dev
version: 1.0
- name: Build-MPI
run:
cmake -DUSE_MPI=1 -B build_mpi -S . && make -C build_mpi
- name: Test-MPI
run: make test -C build_mpi

30 changes: 30 additions & 0 deletions .github/workflows/build-serial-omp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Test Serial and OpenMP backends

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '30 8 * * *'

jobs:
build-and-run-serial:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build-Serial
run: cmake -B build_serial_gnu -S . && make -C build_serial_gnu
- name: Test-Serial
run: make test -C build_serial_gnu

build-and-run-omp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build-OMP
run:
cmake -DUSE_OPENMP=1 -B build_omp_gnu -S . && make -C build_omp_gnu
- name: Test-OMP
run: make test -C build_omp_gnu

34 changes: 0 additions & 34 deletions .github/workflows/build.yml

This file was deleted.

0 comments on commit 4a78a54

Please sign in to comment.