CI: Build Windows binary in a separate job
This commit is contained in:
parent
3494ba71e6
commit
e1498a317b
5 changed files with 77 additions and 18 deletions
30
.justfile
30
.justfile
|
|
@ -72,6 +72,17 @@ assess-run-watch-quick:
|
|||
|
||||
alias rq := assess-run-watch-quick
|
||||
|
||||
# Determine the Minimum Supported Rust Version
|
||||
[group: 'develop']
|
||||
msrv:
|
||||
@{{ make_msrv("find", musl_target) }}
|
||||
@{{ make_msrv("find", glibc_target) }}
|
||||
@{{ make_msrv("find", msvc_target) }}
|
||||
|
||||
make_msrv(command, target) := f"printf '{{ target }}: '; " + \
|
||||
f"cargo msrv {{ command }} --target {{ target }} --output-format minimal " \
|
||||
+ f"-- {{ maybe_xwin(target) }} build --ignore-rust-version"
|
||||
|
||||
[private]
|
||||
test-cover-quick:
|
||||
{{ cover_cmd }} --no-report -- --test 'serial_tests::' --test-threads 1
|
||||
|
|
@ -321,6 +332,8 @@ test-windows pattern="":
|
|||
-{{ xwin_test(pattern) }} --timings --doc
|
||||
-{{ xwin_test(pattern) }} --timings --lib -- --skip 'serial_tests::'
|
||||
|
||||
xwin_test(pattern) := f"cargo-xwin test {{ pattern }} --target {{ msvc_target }}"
|
||||
|
||||
# Run tests with unfiltered output
|
||||
[group: 'assess']
|
||||
test-output pattern="":
|
||||
|
|
@ -361,7 +374,7 @@ verify:
|
|||
fi
|
||||
{{ just_cmd }} \
|
||||
todos-assess version-assess spell schema-lint deny \
|
||||
format-assess lint-assess check \
|
||||
format-assess lint-assess msrv-assess check \
|
||||
test "" cover-assess
|
||||
|
||||
alias v := verify
|
||||
|
|
@ -387,6 +400,13 @@ version-assess remote="false": update
|
|||
|
||||
alias va := version-assess
|
||||
|
||||
# Assess if the current Minimum Supported Rust Version is accurate
|
||||
[group: 'assess']
|
||||
msrv-assess:
|
||||
{{ make_msrv("verify", musl_target) }}
|
||||
{{ make_msrv("verify", glibc_target) }}
|
||||
{{ make_msrv("verify", msvc_target) }}
|
||||
|
||||
# Find TODOs
|
||||
[group: 'assess']
|
||||
todos-assess:
|
||||
|
|
@ -448,6 +468,9 @@ release-build target=default_target:
|
|||
--timings --target {{ target }} --locked --release
|
||||
du -h target/{{ target }}/release/{{ with_suffix("en", target) }}
|
||||
|
||||
maybe_xwin(target) := if target == msvc_target { "cargo-xwin" } else { "cargo" }
|
||||
with_suffix(file, target) := if target == msvc_target { f"{{ file }}.exe" } else { file }
|
||||
|
||||
alias rb := release-build
|
||||
|
||||
# glibc release build
|
||||
|
|
@ -513,11 +536,6 @@ lockfile_version := ```
|
|||
| grep version | cut -d '"' -f 2
|
||||
```
|
||||
|
||||
## FUNCTIONS
|
||||
with_suffix(file, target) := if target == msvc_target { f"{{ file }}.exe" } else { file }
|
||||
maybe_xwin(target) := if target == msvc_target { "cargo-xwin" } else { "cargo" }
|
||||
xwin_test(pattern) := f"cargo-xwin test {{ pattern }} --target {{ msvc_target }}"
|
||||
|
||||
## OPTIONS
|
||||
set unstable
|
||||
set lazy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue