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 : Swatinem/rust-cache@v2
37
+ with :
38
+ cache-all-crates : true
39
+ save-if : ${{ github.ref == 'refs/heads/main' }}
40
+ lookup-only : ${{ github.ref == 'refs/heads/main' }}
35
41
- name : Validate (default)
36
42
run : just validate
37
43
# Build container with continuous repository enabled
41
47
- uses : actions/checkout@v4
42
48
- name : Bootc Ubuntu Setup
43
49
uses : ./.github/actions/bootc-ubuntu-setup
50
+ - name : Setup Rust cache
51
+ uses : Swatinem/rust-cache@v2
52
+ with :
53
+ cache-all-crates : true
54
+ save-if : ${{ github.ref == 'refs/heads/main' }}
55
+ lookup-only : ${{ github.ref == 'refs/heads/main' }}
44
56
- name : Build with continuous repo enabled
45
57
run : sudo just build --build-arg=continuous_repo=1
46
58
# Check for security vulnerabilities and license compliance
62
74
uses : actions/checkout@v4
63
75
- name : Bootc Ubuntu Setup
64
76
uses : ./.github/actions/bootc-ubuntu-setup
77
+ - name : Setup Rust cache
78
+ uses : Swatinem/rust-cache@v2
79
+ with :
80
+ cache-all-crates : true
81
+ save-if : ${{ github.ref == 'refs/heads/main' }}
82
+ lookup-only : ${{ github.ref == 'refs/heads/main' }}
65
83
- name : Enable fsverity for /
66
84
run : sudo tune2fs -O verity $(findmnt -vno SOURCE /)
67
85
- name : Install utils
76
94
sudo podman build -t localhost/bootc-fsverity -f ci/Containerfile.install-fsverity
77
95
78
96
# 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
97
cargo build --release -p tests-integration
81
98
82
99
df -h /
@@ -116,6 +133,12 @@ jobs:
116
133
- uses : actions/checkout@v4
117
134
- name : Bootc Ubuntu Setup
118
135
uses : ./.github/actions/bootc-ubuntu-setup
136
+ - name : Setup Rust cache
137
+ uses : Swatinem/rust-cache@v2
138
+ with :
139
+ cache-all-crates : true
140
+ save-if : ${{ github.ref == 'refs/heads/main' }}
141
+ lookup-only : ${{ github.ref == 'refs/heads/main' }}
119
142
- name : Build mdbook
120
143
run : just build-mdbook
121
144
# Build containers and disk images for integration testing across OS matrix
@@ -131,6 +154,12 @@ jobs:
131
154
- uses : actions/checkout@v4
132
155
- name : Bootc Ubuntu Setup
133
156
uses : ./.github/actions/bootc-ubuntu-setup
157
+ - name : Setup Rust cache
158
+ uses : Swatinem/rust-cache@v2
159
+ with :
160
+ cache-all-crates : true
161
+ save-if : ${{ github.ref == 'refs/heads/main' }}
162
+ lookup-only : ${{ github.ref == 'refs/heads/main' }}
134
163
- name : Install qemu-utils
135
164
run : sudo apt install -y qemu-utils
136
165
0 commit comments