Skip to content

Commit

Permalink
ci/gha: add fedora job
Browse files Browse the repository at this point in the history
Some recently added features require openat2 support to be tested.
We used Travis for that, but it's not available now, so let's use
a GHA VM.

Code mostly copied from github.com/opencontainers/runc.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed Feb 24, 2021
1 parent 34a8092 commit 8d9c48a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 38 deletions.
5 changes: 2 additions & 3 deletions .ci/Vagrantfile.fedora32 → .ci/Vagrantfile.fedora33
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Vagrant.configure("2") do |config|
# Fedora box is used for testing cgroup v2 support
config.vm.box = "fedora/32-cloud-base"
config.vm.box = "fedora/33-cloud-base"
config.vm.provider :virtualbox do |v|
v.memory = 2048
v.cpus = 2
Expand All @@ -20,8 +20,7 @@ Vagrant.configure("2") do |config|
cat << EOF | dnf -y shell && break
config exclude kernel,kernel-core
config install_weak_deps false
update
install make golang-go libseccomp-devel git-core
install make golang-go git-core
ts run
EOF
done
Expand Down
20 changes: 0 additions & 20 deletions .ci/install-vagrant.sh

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,22 @@ jobs:
sudo -E PATH=$PATH make test
# fixup go cache screwed by sudo
sudo chown -R runner:$HOME/.cache
# some features, like openat2, require a newer kernel
fedora:
# nested virtualization is only available on macOS hosts
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- name: prepare vagrant
run: |
ln -sf .ci/Vagrantfile.fedora33 Vagrantfile
# Retry if it fails (download.fedoraproject.org returns 404 sometimes)
vagrant up || vagrant up
vagrant ssh-config >> ~/.ssh/config
- name: system info
run: ssh default 'sh -exc "uname -a && df -T"'

- name: tests
run: ssh default 'cd /vagrant && sudo make test'
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

0 comments on commit 8d9c48a

Please sign in to comment.