mirror of https://github.com/telemt/telemt.git
Update .github/workflows/release.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
8fdc1b1ea0
commit
9a3ddeec01
|
|
@ -239,6 +239,15 @@ jobs:
|
||||||
pkg_add rust
|
pkg_add rust
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
|
RUSTC_VERSION=$(rustc --version | awk '{print $2}')
|
||||||
|
RUSTC_MAJOR=$(echo "$RUSTC_VERSION" | cut -d. -f1)
|
||||||
|
RUSTC_MINOR=$(echo "$RUSTC_VERSION" | cut -d. -f2)
|
||||||
|
REQUIRED_MAJOR=1
|
||||||
|
REQUIRED_MINOR=85
|
||||||
|
if [ "$RUSTC_MAJOR" -lt "$REQUIRED_MAJOR" ] || { [ "$RUSTC_MAJOR" -eq "$REQUIRED_MAJOR" ] && [ "$RUSTC_MINOR" -lt "$REQUIRED_MINOR" ]; }; then
|
||||||
|
echo "rustc ${REQUIRED_MAJOR}.${REQUIRED_MINOR}.0 or newer is required for this project (found ${RUSTC_VERSION})."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
cargo build --release --locked --verbose
|
cargo build --release --locked --verbose
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: ${{ matrix.rustflags }}
|
RUSTFLAGS: ${{ matrix.rustflags }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue