Skip to content

Commit d5350ff

Browse files
authored
Merge pull request #4867 from cyphar/1.2-gha-arm
[1.2] CI: switch to GHA for arm
2 parents 8d86671 + 376961e commit d5350ff

File tree

2 files changed

+8
-44
lines changed

2 files changed

+8
-44
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
os: [ubuntu-24.04, actuated-arm64-6cpu-8gb]
26+
os: [ubuntu-24.04, ubuntu-24.04-arm]
2727
go-version: [1.22.x, 1.23.x, 1.24.x]
2828
rootless: ["rootless", ""]
2929
race: ["-race", ""]
@@ -37,39 +37,15 @@ jobs:
3737
go-version: 1.23.x
3838
- criu: criu-dev
3939
rootless: rootless
40-
- criu: criu-dev
41-
race: -race
42-
- go-version: 1.22.x
43-
os: actuated-arm64-6cpu-8gb
44-
- go-version: 1.23.x
45-
os: actuated-arm64-6cpu-8gb
46-
- race: "-race"
47-
os: actuated-arm64-6cpu-8gb
48-
- criu: criu-dev
49-
os: actuated-arm64-6cpu-8gb
40+
# Do race detection only on latest Go.
41+
- race: -race
42+
go-version: 1.22.x
43+
- race: -race
44+
go-version: 1.23.x
5045

5146
runs-on: ${{ matrix.os }}
5247

5348
steps:
54-
# https://gist.github.com/alexellis/1f33e581c75e11e161fe613c46180771#file-metering-gha-md
55-
# vmmeter start
56-
- name: Prepare arkade
57-
uses: alexellis/arkade-get@master
58-
if: matrix.os == 'actuated-arm64-6cpu-8gb'
59-
with:
60-
crane: latest
61-
print-summary: false
62-
63-
- name: Install vmmeter
64-
if: matrix.os == 'actuated-arm64-6cpu-8gb'
65-
run: |
66-
crane export --platform linux/arm64 ghcr.io/openfaasltd/vmmeter:latest | sudo tar -xvf - -C /usr/local/bin
67-
68-
- name: Run vmmeter
69-
uses: self-actuated/vmmeter-action@master
70-
if: matrix.os == 'actuated-arm64-6cpu-8gb'
71-
# vmmeter end
72-
7349
- name: checkout
7450
uses: actions/checkout@v4
7551

@@ -95,17 +71,6 @@ jobs:
9571
# kernel config
9672
script/check-config.sh
9773
98-
- name: start sshd (used for testing rootless with systemd user session)
99-
if: ${{ matrix.os == 'actuated-arm64-6cpu-8gb' && matrix.rootless == 'rootless' }}
100-
run: |
101-
# Generate new keys to fix "sshd: no hostkeys available -- exiting."
102-
sudo ssh-keygen -A
103-
if ! sudo systemctl start ssh.service; then
104-
sudo journalctl -xeu ssh.service
105-
exit 1
106-
fi
107-
ps auxw | grep sshd
108-
10974
- name: install deps
11075
run: |
11176
sudo apt update
@@ -122,7 +87,7 @@ jobs:
12287
sudo apt update
12388
sudo apt -y install criu
12489
125-
- name: install CRIU (criu ${{ matrix.criu }})
90+
- name: install CRIU (${{ matrix.criu }})
12691
if: ${{ matrix.criu != '' }}
12792
run: |
12893
sudo apt -qy install \
@@ -152,7 +117,7 @@ jobs:
152117

153118
- name: Allow userns for runc
154119
# https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#unprivileged-user-namespace-restrictions-15
155-
if: matrix.os == 'ubuntu-24.04'
120+
if: startsWith(matrix.os, 'ubuntu-24.04')
156121
run: |
157122
sed "s;^profile runc /usr/sbin/;profile runc-test $PWD/;" < /etc/apparmor.d/runc | sudo apparmor_parser
158123

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
[![gha/validate](https://github.com/opencontainers/runc/workflows/validate/badge.svg)](https://github.com/opencontainers/runc/actions?query=workflow%3Avalidate)
77
[![gha/ci](https://github.com/opencontainers/runc/workflows/ci/badge.svg)](https://github.com/opencontainers/runc/actions?query=workflow%3Aci)
88
[![CirrusCI](https://api.cirrus-ci.com/github/opencontainers/runc.svg)](https://cirrus-ci.com/github/opencontainers/runc)
9-
<a href="https://actuated.dev"><img alt="Arm CI sponsored by Actuated" src="https://docs.actuated.dev/images/actuated-badge.png" width="120px"></img></a>
109

1110
## Introduction
1211

0 commit comments

Comments
 (0)