Skip to content

Update build.yml

Update build.yml #212

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '30 8 * * *'
jobs:
build-and-run-serial:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build-Serial
run: cmake -DBACKEND=serial -DCOMPILER=gnu -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-20.04
steps:
- uses: actions/checkout@v2
- name: Build-OMP
run:
cmake -DBACKEND=openmp -DCOMPILER=gnu -B build_omp_gnu -S . && make -C build_omp_gnu
- name: Test-OMP
run: make test -C build_omp_gnu
build-cuda:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Run batch file
run: cd tests/misc && chmod +x run-crnch-cuda.sh && sbatch run-crnch-cuda.sh