mirror of
https://github.com/opencontainers/runc.git
synced 2025-09-26 19:41:35 +08:00
Merge pull request #4866 from cyphar/1.3-gha-arm
[1.3] CI: switch to GHA for arm
This commit is contained in:
47
.github/workflows/test.yml
vendored
47
.github/workflows/test.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-24.04, actuated-arm64-6cpu-8gb]
|
||||
os: [ubuntu-24.04, ubuntu-24.04-arm]
|
||||
go-version: [1.23.x, 1.24.x]
|
||||
rootless: ["rootless", ""]
|
||||
race: ["-race", ""]
|
||||
@@ -36,37 +36,13 @@ jobs:
|
||||
go-version: 1.23.x
|
||||
- criu: criu-dev
|
||||
rootless: rootless
|
||||
- criu: criu-dev
|
||||
race: -race
|
||||
- go-version: 1.23.x
|
||||
os: actuated-arm64-6cpu-8gb
|
||||
- race: "-race"
|
||||
os: actuated-arm64-6cpu-8gb
|
||||
- criu: criu-dev
|
||||
os: actuated-arm64-6cpu-8gb
|
||||
# Do race detection only on latest Go.
|
||||
- race: -race
|
||||
go-version: 1.23.x
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
# https://gist.github.com/alexellis/1f33e581c75e11e161fe613c46180771#file-metering-gha-md
|
||||
# vmmeter start
|
||||
- name: Prepare arkade
|
||||
uses: alexellis/arkade-get@master
|
||||
if: matrix.os == 'actuated-arm64-6cpu-8gb'
|
||||
with:
|
||||
crane: latest
|
||||
print-summary: false
|
||||
|
||||
- name: Install vmmeter
|
||||
if: matrix.os == 'actuated-arm64-6cpu-8gb'
|
||||
run: |
|
||||
crane export --platform linux/arm64 ghcr.io/openfaasltd/vmmeter:latest | sudo tar -xvf - -C /usr/local/bin
|
||||
|
||||
- name: Run vmmeter
|
||||
uses: self-actuated/vmmeter-action@master
|
||||
if: matrix.os == 'actuated-arm64-6cpu-8gb'
|
||||
# vmmeter end
|
||||
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
@@ -92,17 +68,6 @@ jobs:
|
||||
# kernel config
|
||||
script/check-config.sh
|
||||
|
||||
- name: start sshd (used for testing rootless with systemd user session)
|
||||
if: ${{ matrix.os == 'actuated-arm64-6cpu-8gb' && matrix.rootless == 'rootless' }}
|
||||
run: |
|
||||
# Generate new keys to fix "sshd: no hostkeys available -- exiting."
|
||||
sudo ssh-keygen -A
|
||||
if ! sudo systemctl start ssh.service; then
|
||||
sudo journalctl -xeu ssh.service
|
||||
exit 1
|
||||
fi
|
||||
ps auxw | grep sshd
|
||||
|
||||
- name: install deps
|
||||
run: |
|
||||
sudo apt update
|
||||
@@ -119,7 +84,7 @@ jobs:
|
||||
sudo apt update
|
||||
sudo apt -y install criu
|
||||
|
||||
- name: install CRIU (criu ${{ matrix.criu }})
|
||||
- name: install CRIU (${{ matrix.criu }})
|
||||
if: ${{ matrix.criu != '' }}
|
||||
run: |
|
||||
sudo apt -qy install \
|
||||
@@ -149,7 +114,7 @@ jobs:
|
||||
|
||||
- name: Allow userns for runc
|
||||
# https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#unprivileged-user-namespace-restrictions-15
|
||||
if: matrix.os == 'ubuntu-24.04'
|
||||
if: startsWith(matrix.os, 'ubuntu-24.04')
|
||||
run: |
|
||||
sed "s;^profile runc /usr/sbin/;profile runc-test $PWD/;" < /etc/apparmor.d/runc | sudo apparmor_parser
|
||||
|
||||
|
@@ -6,7 +6,6 @@
|
||||
[](https://github.com/opencontainers/runc/actions?query=workflow%3Avalidate)
|
||||
[](https://github.com/opencontainers/runc/actions?query=workflow%3Aci)
|
||||
[](https://cirrus-ci.com/github/opencontainers/runc)
|
||||
<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>
|
||||
|
||||
## Introduction
|
||||
|
||||
|
Reference in New Issue
Block a user