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:
14
14
jobs :
15
15
build :
16
16
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' }}
18
18
strategy :
19
19
matrix :
20
20
os : [linux, darwin, windows]
@@ -84,11 +84,12 @@ jobs:
84
84
path : sops-${{ matrix.go-version }}-${{ matrix.os }}-${{ github.sha }}
85
85
test :
86
86
name : Functional tests
87
- runs-on : ubuntu-latest
87
+ runs-on : ${{ arch == 'arm64' && ' ubuntu-24.04-arm' || 'ubuntu- latest' }}
88
88
needs : [build]
89
89
strategy :
90
90
matrix :
91
91
go-version : ['1.22']
92
+ arch : [amd64, arm64]
92
93
env :
93
94
VAULT_VERSION : " 1.14.0"
94
95
VAULT_TOKEN : " root"
@@ -110,16 +111,16 @@ jobs:
110
111
111
112
- uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
112
113
with :
113
- name : sops-${{ matrix.go-version }}-linux-amd64 -${{ github.sha }}
114
+ name : sops-${{ matrix.go-version }}-linux-${{ matrix.arch }} -${{ github.sha }}
114
115
115
116
- 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
117
118
118
119
- name : Make SOPS binary executable
119
120
run : chmod +x ./functional-tests/sops
120
121
121
122
- 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/
123
124
124
125
- name : Start Vault server
125
126
run : vault server -dev -dev-root-token-id="$VAULT_TOKEN" &
You can’t perform that action at this time.
0 commit comments