Skip to content

Commit fc63e30

Browse files
committed
ci: install grub2-tools-minimal to test test_write_grubenv()
1 parent e748d67 commit fc63e30

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.cci.jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ parallel build: {
1717
}
1818
stage("Unit tests") {
1919
shwrap("""
20+
dnf install -y grub2-tools-minimal
2021
cargo test
2122
""")
2223
}

.github/workflows/rust.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ jobs:
3232
uses: dtolnay/rust-toolchain@v1
3333
with:
3434
toolchain: stable
35+
- name: Install grub2
36+
run: |
37+
set -xeu
38+
dnf install -y grub2-tools-minimal
3539
- name: Cache build artifacts
3640
uses: Swatinem/rust-cache@v2
3741
- name: cargo build
@@ -49,6 +53,10 @@ jobs:
4953
uses: dtolnay/rust-toolchain@v1
5054
with:
5155
toolchain: stable
56+
- name: Install grub2
57+
run: |
58+
set -xeu
59+
dnf install -y grub2-tools-minimal
5260
- name: Cache build artifacts
5361
uses: Swatinem/rust-cache@v2
5462
- name: cargo build (release)
@@ -74,6 +82,10 @@ jobs:
7482
toolchain: ${{ env.MSRV }}
7583
- name: Cache build artifacts
7684
uses: Swatinem/rust-cache@v2
85+
- name: Install grub2
86+
run: |
87+
set -xeu
88+
dnf install -y grub2-tools-minimal
7789
- name: cargo build (release)
7890
run: cargo build --all-targets --release
7991
- name: cargo test (release)
@@ -111,6 +123,10 @@ jobs:
111123
uses: dtolnay/rust-toolchain@v1
112124
with:
113125
toolchain: ${{ matrix.channel }}
126+
- name: Install grub2
127+
run: |
128+
set -xeu
129+
dnf install -y grub2-tools-minimal
114130
- name: Cache build artifacts
115131
uses: Swatinem/rust-cache@v2
116132
- name: cargo build

0 commit comments

Comments
 (0)