File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ permissions:
1414jobs :
1515 build :
1616 name : Build and test ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.go-version }}
17- runs-on : ubuntu-latest
17+ runs-on : ${{ matrix.arch == 'arm64' && ' ubuntu-24.04-arm' || 'ubuntu- latest' }}
1818 strategy :
1919 matrix :
2020 os : [linux, darwin, windows]
@@ -84,11 +84,12 @@ jobs:
8484 path : sops-${{ matrix.go-version }}-${{ matrix.os }}-${{ github.sha }}
8585 test :
8686 name : Functional tests
87- runs-on : ubuntu-latest
87+ runs-on : ${{ arch == 'arm64' && ' ubuntu-24.04-arm' || 'ubuntu- latest' }}
8888 needs : [build]
8989 strategy :
9090 matrix :
9191 go-version : ['1.22']
92+ arch : [amd64, arm64]
9293 env :
9394 VAULT_VERSION : " 1.14.0"
9495 VAULT_TOKEN : " root"
@@ -110,16 +111,16 @@ jobs:
110111
111112 - uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
112113 with :
113- name : sops-${{ matrix.go-version }}-linux-amd64 -${{ github.sha }}
114+ name : sops-${{ matrix.go-version }}-linux-${{ matrix.arch }} -${{ github.sha }}
114115
115116 - name : Move SOPS binary
116- run : mv sops-${{ matrix.go-version }}-linux-amd64 -${{ github.sha }} ./functional-tests/sops
117+ run : mv sops-${{ matrix.go-version }}-linux-${{ matrix.arch }} -${{ github.sha }} ./functional-tests/sops
117118
118119 - name : Make SOPS binary executable
119120 run : chmod +x ./functional-tests/sops
120121
121122 - name : Download Vault
122- run : curl -O "https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64. zip" && sudo unzip vault_${VAULT_VERSION}_linux_amd64 .zip -d /usr/local/bin/
123+ run : curl -O "https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_${{ matrix.arch }}. zip" && sudo unzip vault_${VAULT_VERSION}_linux_${{ matrix.arch }} .zip -d /usr/local/bin/
123124
124125 - name : Start Vault server
125126 run : vault server -dev -dev-root-token-id="$VAULT_TOKEN" &
You can’t perform that action at this time.
0 commit comments