Skip to content

Commit

Permalink
test dynamic strategy matrix again
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Lamarre <[email protected]>
  • Loading branch information
alexandreLamarre committed Apr 22, 2024
1 parent 7d6b67b commit 9da5b4c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,21 @@ on:
- 'LICENSE'
jobs:
build:
strategy:
matrix:
include:
- platform: linux/amd64
- platform: linux/arm64
name : CI
runs-on : ubuntu-latest
outputs:
k3s-versions: ${{ steps.support.outputs.k3sversions }}
k3sversions: ${{ steps.support.outputs.k3sversions }}
steps:
- name : Checkout repository
uses : actions/checkout@v4
- name : Determine k3s versions to support
- name: Set K3s support output
id : support
run : |
k3s_versions="[\"v1.20.2+k3s1\",\"v1.21.5+k3s2\"]"
echo "::set-output name=k3s-versions::$k3s_versions"
run: echo "k3sversions=[\"hello\", \"world\"]" >> $GITHUB_OUTPUT
- name : CI
run : make ci
- name: Upload artifact
Expand All @@ -49,7 +52,7 @@ jobs:
runs-on : ubuntu-latest
strategy:
matrix:
K3S_VERSION : ${{ fromJson(needs.build.outputs['k3s-versions']) }}
K3S_VERSION : ${{ fromJSON(needs.build.outputs.k3sversions) }}
steps:
- name : Checkout repository
uses : actions/checkout@v4
Expand Down

0 comments on commit 9da5b4c

Please sign in to comment.