Skip to content

Commit ee28ef2

Browse files
committed
ci: Give it a matrix
1 parent d3f48aa commit ee28ef2

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/containers_config.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
env:
1717
FORCE_COLOR: 1
18-
# TODO matrix:
18+
strategy:
19+
matrix:
20+
container_type: ['docker', 'singularity'] # TODO , "singularity_oras"]
21+
architecture: ['amd64', 'arm64']
1922
steps:
2023
# TODO
2124
# - uses: earthly/actions/setup-earthly@v1
@@ -27,5 +30,10 @@ jobs:
2730
version: "25.01.0-edge"
2831
- name: Snapshot containers
2932
run: |
30-
nextflow inspect . -profile wave,docker -format config > conf/containers/docker.config
33+
if [ "${{ matrix.architecture }}" == "arm64" ]; then
34+
profile="wave,${{ matrix.container_type }},arm"
35+
else
36+
profile="wave,${{ matrix.container_type }}"
37+
fi
38+
nextflow inspect . -profile $profile -format config > conf/containers/containers_${{ matrix.container_type }}_${{ matrix.architecture }}.config
3139
File renamed without changes.

0 commit comments

Comments
 (0)