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
+ save-if : ${{ github.ref == 'refs/heads/main' }}
35
39
- name : Validate (default)
36
40
run : just validate
37
41
# Build container with continuous repository enabled
41
45
- uses : actions/checkout@v4
42
46
- name : Bootc Ubuntu Setup
43
47
uses : ./.github/actions/bootc-ubuntu-setup
48
+ - name : Setup Rust cache
49
+ uses : step-security/rust-cache@v2
50
+ with :
51
+ save-if : ${{ github.ref == 'refs/heads/main' }}
44
52
- name : Build with continuous repo enabled
45
53
run : sudo just build --build-arg=continuous_repo=1
46
54
# Check for security vulnerabilities and license compliance
62
70
uses : actions/checkout@v4
63
71
- name : Bootc Ubuntu Setup
64
72
uses : ./.github/actions/bootc-ubuntu-setup
73
+ - name : Setup Rust cache
74
+ uses : step-security/rust-cache@v2
75
+ with :
76
+ save-if : ${{ github.ref == 'refs/heads/main' }}
65
77
- name : Enable fsverity for /
66
78
run : sudo tune2fs -O verity $(findmnt -vno SOURCE /)
67
79
- name : Install utils
76
88
sudo podman build -t localhost/bootc-fsverity -f ci/Containerfile.install-fsverity
77
89
78
90
# 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
91
cargo build --release -p tests-integration
81
92
82
93
df -h /
@@ -116,6 +127,10 @@ jobs:
116
127
- uses : actions/checkout@v4
117
128
- name : Bootc Ubuntu Setup
118
129
uses : ./.github/actions/bootc-ubuntu-setup
130
+ - name : Setup Rust cache
131
+ uses : step-security/rust-cache@v2
132
+ with :
133
+ save-if : ${{ github.ref == 'refs/heads/main' }}
119
134
- name : Build mdbook
120
135
run : just build-mdbook
121
136
# Build containers and disk images for integration testing across OS matrix
@@ -131,6 +146,10 @@ jobs:
131
146
- uses : actions/checkout@v4
132
147
- name : Bootc Ubuntu Setup
133
148
uses : ./.github/actions/bootc-ubuntu-setup
149
+ - name : Setup Rust cache
150
+ uses : step-security/rust-cache@v2
151
+ with :
152
+ save-if : ${{ github.ref == 'refs/heads/main' }}
134
153
- name : Install qemu-utils
135
154
run : sudo apt install -y qemu-utils
136
155
0 commit comments