Use Rust stable and MSRV in GitLab CI

This commit is contained in:
timvisee 2023-01-25 20:44:11 +01:00
parent 39feb0bdc2
commit c6db4d7c3f
No known key found for this signature in database
GPG Key ID: B8DB720BC383E172
2 changed files with 13 additions and 1 deletions

View File

@ -9,12 +9,16 @@ stages:
# Variable defaults
variables:
RUST_VERSION: stable
TARGET: x86_64-unknown-linux-gnu
# Install build dependencies
before_script:
- apt-get update
- apt-get install -y --no-install-recommends build-essential
- |
rustup install $RUST_VERSION
rustup default $RUST_VERSION
- |
rustc --version
cargo --version
@ -41,8 +45,12 @@ before_script:
- cargo check --no-default-features --verbose
- cargo check --no-default-features --features rcon --verbose
- cargo check --no-default-features --features lobby --verbose
check:
check-stable:
<<: *check-base
check-msrv:
<<: *check-base
variables:
RUST_VERSION: 1.60.0
# Build using Rust stable on Linux
build-x86_64-linux-gnu:

View File

@ -55,6 +55,10 @@ https://user-images.githubusercontent.com/856222/141378688-882082be-9efa-4cfe-81
- Minecraft Java Edition 1.6+
- On Windows: RCON (automatically managed)
Build requirements:
- Rust 1.60 (MSRV)
_Note: You must have access to the system to run the `lazymc` binary. If you're
using a Minecraft shared hosting provider with a custom dashboard, you likely
won't be able to set this up._