Skip to content

Commit deeac5e

Browse files
committed
Add CI checks for copy-packetline
For the real purpose of this new check, which is to verify that `just copy-packetline` has been run when needed, to ensure that gix-packetline-blocking/src is not out of date, it should only be necessary to run this check on one platform. So this should probably be changed to `runs-on: ubuntu-latest` instead of a matrix strategy soon. I'm running it on three platforms initially to check the script (though some functionality of the script is not exercised). I've also tested the script locally on Ubuntu 22.04.4 LTS, and on Windows 10 (in Git Bash).
1 parent b312d8d commit deeac5e

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

.github/workflows/ci.yml

+33-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ jobs:
176176
# Let's not fail CI for this, it will fail locally often enough, and a crate a little bigger
177177
# than allows is no problem either if it comes to that.
178178
just check-size || true
179-
179+
180180
cargo-deny:
181181
runs-on: ubuntu-latest
182182
strategy:
@@ -193,6 +193,7 @@ jobs:
193193
- uses: EmbarkStudios/cargo-deny-action@v1
194194
with:
195195
command: check ${{ matrix.checks }}
196+
196197
wasm:
197198
name: WebAssembly
198199
runs-on: ubuntu-latest
@@ -213,3 +214,34 @@ jobs:
213214
name: crates with 'wasm' feature
214215
- run: cd gix-pack && cargo build --all-features --target ${{ matrix.target }}
215216
name: gix-pack with all features (including wasm)
217+
218+
check-packetline:
219+
strategy:
220+
matrix:
221+
os:
222+
- ubuntu-latest
223+
- macos-latest
224+
- windows-latest
225+
continue-on-error: true
226+
runs-on: ${{ matrix.os }}
227+
defaults:
228+
run:
229+
shell: bash
230+
steps:
231+
- uses: actions/checkout@v4
232+
- uses: dtolnay/rust-toolchain@v1
233+
with:
234+
toolchain: stable
235+
- uses: extractions/setup-just@v2
236+
- name: Check that working tree is initially clean
237+
run: |
238+
git status
239+
set -x
240+
git status | grep -qF 'nothing to commit, working tree clean'
241+
- name: Regenerate gix-packetline-blocking/src
242+
run: just copy-packetline
243+
- name: Check that gix-packetline-blocking/src was already up to date
244+
run: |
245+
git status
246+
set -x
247+
git status | grep -qF 'nothing to commit, working tree clean'

0 commit comments

Comments
 (0)