From c6db4d7c3fd89a34baa96e9d935393d37d32b715 Mon Sep 17 00:00:00 2001 From: timvisee Date: Wed, 25 Jan 2023 20:44:11 +0100 Subject: [PATCH] Use Rust stable and MSRV in GitLab CI --- .gitlab-ci.yml | 10 +++++++++- README.md | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4616182..0f0bc35 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: diff --git a/README.md b/README.md index 6e987e3..955fb2d 100644 --- a/README.md +++ b/README.md @@ -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._