File tree Expand file tree Collapse file tree 2 files changed +39
-12
lines changed Expand file tree Collapse file tree 2 files changed +39
-12
lines changed Original file line number Diff line number Diff line change 42
42
run : mkdir -p target/man && cargo run --features=docgen -- man --directory target/man
43
43
- name : Clippy (non-gating)
44
44
run : cargo clippy
45
- build :
45
+ build-fedora :
46
46
runs-on : ubuntu-latest
47
47
container : quay.io/coreos-assembler/fcos-buildroot:testing-devel
48
48
steps :
60
60
with :
61
61
name : bootc.tar.zst
62
62
path : target/bootc.tar.zst
63
+ build-c9s :
64
+ runs-on : ubuntu-latest
65
+ container : quay.io/centos/centos:stream9
66
+ steps :
67
+ - run : dnf -y install git-core
68
+ - uses : actions/checkout@v3
69
+ - name : Install deps
70
+ run : ./ci/installdeps.sh
71
+ - name : Cache Dependencies
72
+ uses : Swatinem/rust-cache@v2
73
+ with :
74
+ key : " build-c9s"
75
+ - name : Build
76
+ run : make test-bin-archive
77
+ - name : Upload binary
78
+ uses : actions/upload-artifact@v3
79
+ with :
80
+ name : bootc-c9s.tar.zst
81
+ path : target/bootc.tar.zst
63
82
cargo-deny :
64
83
runs-on : ubuntu-latest
65
84
steps :
70
89
command : check bans sources licenses
71
90
privtest :
72
91
name : " Privileged testing"
73
- needs : build
92
+ needs : build-fedora
74
93
runs-on : ubuntu-latest
75
94
steps :
76
95
- name : Checkout repository
85
104
run : sudo podman run --rm -ti --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
86
105
container-tests :
87
106
name : " Container testing"
88
- needs : build
107
+ needs : build-fedora
89
108
runs-on : ubuntu-latest
90
109
container : quay.io/fedora/fedora-coreos:testing-devel
91
110
steps :
99
118
run : bootc internal-tests run-container-integration
100
119
privtest-alongside :
101
120
name : " Test install-alongside"
102
- needs : build
121
+ needs : build-fedora
103
122
runs-on : ubuntu-latest
104
123
steps :
105
124
- name : Download
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -xeuo pipefail
3
3
4
+ OS_ID=$( . /usr/lib/os-release && echo $ID )
5
+
6
+ baseurl=
7
+ case $OS_ID in
8
+ fedora) baseurl=https://download.copr.fedorainfracloud.org/results/@CoreOS/continuous/fedora-\$ releasever-\$ basearch/ ;;
9
+ # Default to c9s (also covers all variants/derivatives)
10
+ * ) baseurl=https://download.copr.fedorainfracloud.org/results/@CoreOS/continuous/centos-stream-\$ releasever-\$ basearch/ ;;
11
+ esac
12
+
4
13
# For some reason dnf copr enable -y says there are no builds?
5
- cat > /etc/yum.repos.d/coreos-continuous.repo << ' EOF '
14
+ cat > /etc/yum.repos.d/coreos-continuous.repo << EOF
6
15
[copr:copr.fedorainfracloud.org:group_CoreOS:continuous]
7
16
name=Copr repo for continuous owned by @CoreOS
8
- baseurl=https://download.copr.fedorainfracloud.org/results/@CoreOS/continuous/fedora-$releasever-$basearch/
17
+ baseurl=$baseurl
9
18
type=rpm-md
10
19
skip_if_unavailable=True
11
20
gpgcheck=1
@@ -15,11 +24,10 @@ enabled=1
15
24
enabled_metadata=1
16
25
EOF
17
26
18
- # Pull skopeo and ostree from updates-testing, since we depend on new features in our git main
19
- dnf config-manager --set-enabled updates-testing
20
-
21
27
# Our tests depend on this
22
- dnf -y install skopeo
28
+ dnf -y install skopeo zstd
23
29
24
- # Always pull ostree from updates-testing to avoid the bodhi wait
25
- dnf -y update ostree
30
+ case $OS_ID in
31
+ fedora) dnf -y builddep bootc ;;
32
+ * ) dnf -y install openssl-devel ostree-devel cargo ;;
33
+ esac
You can’t perform that action at this time.
0 commit comments