-
Notifications
You must be signed in to change notification settings - Fork 1
25 lines (25 loc) · 1.03 KB
/
test.yml
File metadata and controls
25 lines (25 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Test Expressions
on:
workflow_dispatch:
inputs:
run-self-hosted:
type: boolean
default: true
jobs:
spack-install-and-test:
name: Install and Test
runs-on: ubuntu-latest
container:
image: ghcr.io/access-nri/build-ci-runner:rocky-v0.22
volumes:
# For self-hosted runners, mount the proper upstream and buildcache volumes from the kubernetes cluster
# For GitHub-hosted runners, mount the upstream but add a dummy buildcache volume /dev/null to avoid errors or undefined behavior, eg. fromJson('[]')
- ${{ inputs.run-self-hosted && '/opt/upstream:/opt/upstream:ro' || 'upstream-data:/opt/upstream:ro' }}
- ${{ inputs.run-self-hosted && '/opt/runner_set_buildcache:/opt/runner_set_buildcache:rw' || '/dev/null:/dev/null:ro' }}
services:
upstream:
image: ${{ ! inputs.run-self-hosted && 'ghcr.io/access-nri/build-ci-upstream:rocky-v0.22' || '' }}
volumes:
- upstream-data:/opt/upstream:rw
steps:
- run: ls -alh /opt/upstream