32
32
- uses : actions/checkout@v4
33
33
- name : Bootc Ubuntu Setup
34
34
uses : ./.github/actions/bootc-ubuntu-setup
35
+ - name : Setup Rust cache
36
+ uses : step-security/rust-cache@v2
37
+ with :
38
+ cache-on-failure : true
39
+ save-if : ${{ github.ref == 'refs/heads/main' }}
35
40
- name : Validate (default)
36
41
run : just validate
37
42
# Build container with continuous repository enabled
41
46
- uses : actions/checkout@v4
42
47
- name : Bootc Ubuntu Setup
43
48
uses : ./.github/actions/bootc-ubuntu-setup
49
+ - name : Setup Rust cache
50
+ uses : step-security/rust-cache@v2
51
+ with :
52
+ cache-on-failure : true
53
+ save-if : ${{ github.ref == 'refs/heads/main' }}
44
54
- name : Build with continuous repo enabled
45
55
run : sudo just build --build-arg=continuous_repo=1
46
56
# Check for security vulnerabilities and license compliance
62
72
uses : actions/checkout@v4
63
73
- name : Bootc Ubuntu Setup
64
74
uses : ./.github/actions/bootc-ubuntu-setup
75
+ - name : Setup Rust cache
76
+ uses : step-security/rust-cache@v2
77
+ with :
78
+ cache-on-failure : true
79
+ save-if : ${{ github.ref == 'refs/heads/main' }}
65
80
- name : Enable fsverity for /
66
81
run : sudo tune2fs -O verity $(findmnt -vno SOURCE /)
67
82
- name : Install utils
76
91
sudo podman build -t localhost/bootc-fsverity -f ci/Containerfile.install-fsverity
77
92
78
93
# TODO move into a container, and then have this tool run other containers
79
- export CARGO_INCREMENTAL=0 # because we aren't caching the test runner bits
80
94
cargo build --release -p tests-integration
81
95
82
96
df -h /
@@ -116,6 +130,11 @@ jobs:
116
130
- uses : actions/checkout@v4
117
131
- name : Bootc Ubuntu Setup
118
132
uses : ./.github/actions/bootc-ubuntu-setup
133
+ - name : Setup Rust cache
134
+ uses : step-security/rust-cache@v2
135
+ with :
136
+ cache-on-failure : true
137
+ save-if : ${{ github.ref == 'refs/heads/main' }}
119
138
- name : Build mdbook
120
139
run : just build-mdbook
121
140
# Build containers and disk images for integration testing across OS matrix
@@ -131,6 +150,11 @@ jobs:
131
150
- uses : actions/checkout@v4
132
151
- name : Bootc Ubuntu Setup
133
152
uses : ./.github/actions/bootc-ubuntu-setup
153
+ - name : Setup Rust cache
154
+ uses : step-security/rust-cache@v2
155
+ with :
156
+ cache-on-failure : true
157
+ save-if : ${{ github.ref == 'refs/heads/main' }}
134
158
- name : Install qemu-utils
135
159
run : sudo apt install -y qemu-utils
136
160
0 commit comments