@@ -49,25 +49,17 @@ jobs:
49
49
run : mkdir -p target/man && cargo run --features=docgen -- man --directory target/man
50
50
- name : Clippy (gate on correctness and suspicous)
51
51
run : cargo clippy -- -D clippy::correctness -D clippy::suspicious
52
- build- fedora :
52
+ fedora-container-tests :
53
53
if : ${{ !contains(github.event.pull_request.labels.*.name, 'control/skip-ci') }}
54
- runs-on : ubuntu-latest
55
- container : quay.io/coreos-assembler/fcos-buildroot:testing-devel
54
+ runs-on : ubuntu-24.04
56
55
steps :
57
56
- uses : actions/checkout@v4
58
- - name : Install deps
59
- run : ./ci/installdeps.sh
60
- - name : Cache Dependencies
61
- uses : Swatinem/rust-cache@v2
62
- with :
63
- key : " build"
64
- - name : Build
65
- run : make test-bin-archive
66
- - name : Upload binary
67
- uses : actions/upload-artifact@v4
68
- with :
69
- name : bootc.tar.zst
70
- path : target/bootc.tar.zst
57
+ - name : Build container (fedora)
58
+ run : sudo podman build --build-arg=base=quay.io/fedora/fedora-bootc:40 -t localhost/bootc -f hack/Containerfile .
59
+ - name : Container integration
60
+ run : sudo podman run --rm localhost/bootc bootc internal-tests run-container-integration
61
+ - name : Privileged tests
62
+ run : sudo podman run --rm --privileged -v /run/systemd:/run/systemd -v /:/run/host --pid=host localhost/bootc bootc internal-tests run-privileged-integration
71
63
cargo-deny :
72
64
runs-on : ubuntu-latest
73
65
steps :
76
68
with :
77
69
log-level : warn
78
70
command : check bans sources licenses
79
- privtest :
80
- if : ${{ !contains(github.event.pull_request.labels.*.name, 'control/skip-ci') }}
81
- name : " Privileged testing"
82
- needs : build-fedora
83
- runs-on : ubuntu-latest
84
- steps :
85
- - name : Checkout repository
86
- uses : actions/checkout@v4
87
- - name : Download
88
- uses : actions/download-artifact@v4
89
- with :
90
- name : bootc.tar.zst
91
- - name : Install
92
- run : sudo tar -C / -xvf bootc.tar.zst
93
- - name : Integration tests
94
- run : sudo podman run --rm --privileged -v /run/systemd:/run/systemd -v /:/run/host -v /usr/bin/bootc:/usr/bin/bootc --pid=host quay.io/fedora/fedora-coreos:testing-devel bootc internal-tests run-privileged-integration
95
- container-tests :
96
- if : ${{ !contains(github.event.pull_request.labels.*.name, 'control/skip-ci') }}
97
- name : " Container testing"
98
- needs : build-fedora
99
- runs-on : ubuntu-latest
100
- container : quay.io/centos-bootc/fedora-bootc:eln-1708320930
101
- steps :
102
- - name : Download
103
- uses : actions/download-artifact@v4
104
- with :
105
- name : bootc.tar.zst
106
- - name : Install
107
- run : sudo tar -C / -xvf bootc.tar.zst
108
- - name : Integration tests
109
- run : bootc internal-tests run-container-integration
110
71
install-tests :
111
72
if : ${{ !contains(github.event.pull_request.labels.*.name, 'control/skip-ci') }}
112
73
name : " Test install"
0 commit comments