Skip to content

Commit a708ca1

Browse files
committed
WIP: gh actions arm CI runners
WIP TBD Signed-off-by: Francesco Romani <[email protected]>
1 parent 81858af commit a708ca1

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

Diff for: .github/workflows/test.yml

+44
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,50 @@ jobs:
149149
GHW_TESTING_SKIP_TOPOLOGY: "1"
150150
run: go test -v ./...
151151

152+
ubuntu-2404-arm:
153+
runs-on: ubuntu-24.04-arm
154+
strategy:
155+
matrix:
156+
go: [ '1.23' ]
157+
steps:
158+
- name: harden runner
159+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
160+
with:
161+
egress-policy: block
162+
disable-sudo: true
163+
allowed-endpoints: >
164+
github.com:443
165+
api.github.com:443
166+
proxy.github.com:443
167+
proxy.golang.org:443
168+
raw.githubusercontent.com:443
169+
objects.githubusercontent.com:443
170+
proxy.golang.org:443
171+
- name: checkout code
172+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
173+
- name: setup go
174+
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
175+
with:
176+
go-version: ${{ matrix.go }}
177+
- name: gather machine info
178+
# we (actually: fromani) know little about ARM machines, so let's dump properties to help troubleshooting
179+
run: |
180+
go run ./cmd/ghwc/main.go -f yaml topology
181+
go run ./cmd/ghwc/main.go -f yaml cpu
182+
go run ./cmd/ghwc/main.go -f yaml memory
183+
go run ./cmd/ghwc/main.go -f yaml pci
184+
- name: run tests
185+
env:
186+
GHW_TESTING_SKIP_BLOCK: "1"
187+
GHW_TESTING_SKIP_GPU: "1"
188+
GHW_TESTING_SKIP_CPU: "1"
189+
GHW_TESTING_SKIP_MEMORY: "1"
190+
GHW_TESTING_SKIP_HOST: "1"
191+
GHW_TESTING_SKIP_NET: "1"
192+
GHW_TESTING_SKIP_PCI: "1"
193+
GHW_TESTING_SKIP_TOPOLOGY: "1"
194+
run: go test -v ./...
195+
152196
# tier-2
153197
# best-effort support, limited to most recent platforms (OS+go)
154198

0 commit comments

Comments
 (0)