Skip to content

Commit

Permalink
Test on GitHub provided runners for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Jun 5, 2024
1 parent ee0864f commit e867cd0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
validate:
type: boolean
required: false

env:
# prevent deadlocked MPI tests from causing the job to cancel
MPIEXEC_TIMEOUT: 3000
Expand Down Expand Up @@ -88,29 +88,33 @@ jobs:
BUILD_HPMC: ${{ !contains(inputs.config, 'nohpmc') }}
BUILD_DEBUG: ${{ contains(inputs.config, 'debug') }}
shell: bash

- name: Build
run: ninja install -j $(($(getconf _NPROCESSORS_ONLN) + 2))
working-directory: build

- name: Configure plugins
run : |
mkdir -p build-example-plugins
cd build-example-plugins
if [[ ${BUILD_DEBUG} == "true" ]]; then BUILD_TYPE="Debug"; else BUILD_TYPE="Release"; fi
echo "BUILD_TYPE=${BUILD_TYPE}"
CMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/install cmake -S code/example_plugins -B build-example-plugins -GNinja -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
env:
BUILD_DEBUG: ${{ contains(inputs.config, 'debug') }}
shell: bash

- name: Build plugins
run: ninja install -j $(($(getconf _NPROCESSORS_ONLN) + 2))
working-directory: build-example-plugins

- name: Remove object files
run: find build -type f -name '*.o' -delete

- name: 'Tar build'
run: tar --use-compress-program='zstd -10 -T0' -cvf build.tar build

- name: 'Tar install'
run: tar --use-compress-program='zstd -10 -T0' -cvf install.tar install

- name: 'Upload build'
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tests_new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ jobs:
test_runner: [self-hosted,GPU]
test_docker_options: '--gpus=all --device /dev/nvidia0 --device /dev/nvidia1 --device /dev/nvidia-uvm --device /dev/nvidia-uvm-tools --device /dev/nvidiactl'
validate: true

- config: [cuda120_gcc11_py310]
build_runner: [self-hosted,jetstream2,CPU]
test_runner: [self-hosted,GPU]
test_docker_options: '--gpus=all --device /dev/nvidia0 --device /dev/nvidia1 --device /dev/nvidia-uvm --device /dev/nvidia-uvm-tools --device /dev/nvidiactl'
validate: true

- config: [gcc13_py312, nomd]
build_runner: [self-hosted,jetstream2,CPU]
test_runner: ubuntu-latest
validate: false

- config: [gcc13_py312, nohpmc]
build_runner: [self-hosted,jetstream2,CPU]
test_runner: ubuntu-latest
Expand All @@ -76,13 +76,13 @@ jobs:
build_runner: [self-hosted,jetstream2,CPU]
test_runner: ubuntu-latest
validate: false
- config: [cuda120_gcc11_py310 mpi, llvm, debug]

- config: [cuda120_gcc11_py310, mpi, llvm, debug]
build_runner: [self-hosted,jetstream2,CPU]
test_runner: [self-hosted,GPU]
test_docker_options: '--gpus=all --device /dev/nvidia0 --device /dev/nvidia1 --device /dev/nvidia-uvm --device /dev/nvidia-uvm-tools --device /dev/nvidiactl'
validate: false

- config: [gcc9_py39]
build_runner: [self-hosted,jetstream2,CPU]
test_runner: ubuntu-latest
Expand Down

0 comments on commit e867cd0

Please sign in to comment.