-
Notifications
You must be signed in to change notification settings - Fork 2
executable file
·43 lines (35 loc) · 1.28 KB
/
CIBuild.yml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Check if NuOscillator compiles correctly
name: Build CI
# The events that trigger the workflow
on:
pull_request:
branches: [ main ]
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false # KS: Prevents cancellation of remaining jobs if one fails
matrix:
include:
- os: Alma9
file: Docs/DockerFiles/Alma9/Dockerfile
tag: alma9latest
cmakeoptions: -DUseDoubles=1
- os: Alma9 float
file: Docs/DockerFiles/Alma9/Dockerfile
tag: alma9latest
cmakeoptions: -DUseDoubles=0
- os: Rocky9
file: Docs/DockerFiles/Rocky9/Dockerfile
tag: rocky9latest
cmakeoptions: -DUseGPU=1
name: Build CI ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build the Docker image
run: docker build . --file ${{ matrix.file }} --tag ghcr.io/${{ github.repository_owner }}/nuoscillator:${{ matrix.tag }} --build-arg NUOSCILLATOR_VERSION=${{ github.head_ref }} --build-arg CMAKE_OPTIONS="${{ matrix.cmakeoptions }}"