aboutsummaryrefslogtreecommitdiff
path: root/.builds
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2024-02-12 21:01:20 +0100
committerChristian Duerr <contact@christianduerr.com>2024-03-19 02:20:53 +0100
commit08804f27f7232250afa44ce036e1df9dc213d72f (patch)
treea4a5cc0f409c0110d118ce2383b1f24996a21fe1 /.builds
parent7d519f57fdb3802eebabb7c264f2b3aa340ea3d0 (diff)
downloadalacritty-08804f27f7232250afa44ce036e1df9dc213d72f.tar.gz
alacritty-08804f27f7232250afa44ce036e1df9dc213d72f.zip
Use dynamic MSRV for oldstable CI
Instead of manually specifying the oldstable version in all our CI scripts, it is now pulled from the `Cargo.toml` which simplifies the update process. The contributing guide has also been updated to not include the explicit version and its wording has been loosened a bit to correctly represent current maintenance practices.
Diffstat (limited to '.builds')
-rw-r--r--.builds/freebsd.yml5
-rw-r--r--.builds/linux.yml5
2 files changed, 6 insertions, 4 deletions
diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml
index 4c9860b5..5e5021c6 100644
--- a/.builds/freebsd.yml
+++ b/.builds/freebsd.yml
@@ -24,8 +24,9 @@ tasks:
cargo test
- oldstable: |
cd alacritty
- rustup toolchain install --profile minimal 1.70.0
- rustup default 1.70.0
+ oldstable=$(cat alacritty/Cargo.toml | grep "rust-version" | sed 's/.*"\(.*\)".*/\1/')
+ rustup toolchain install --profile minimal $oldstable
+ rustup default $oldstable
cargo test
- clippy: |
cd alacritty
diff --git a/.builds/linux.yml b/.builds/linux.yml
index f2e9038a..e036261b 100644
--- a/.builds/linux.yml
+++ b/.builds/linux.yml
@@ -34,8 +34,9 @@ tasks:
cargo test
- oldstable: |
cd alacritty
- rustup toolchain install --profile minimal 1.70.0
- rustup default 1.70.0
+ oldstable=$(cat alacritty/Cargo.toml | grep "rust-version" | sed 's/.*"\(.*\)".*/\1/')
+ rustup toolchain install --profile minimal $oldstable
+ rustup default $oldstable
cargo test
- clippy: |
cd alacritty