1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00
alacritty/.builds/linux.yml
Christian Duerr 08804f27f7 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.
2024-03-19 02:20:53 +01:00

50 lines
1.4 KiB
YAML

image: archlinux
packages:
- pkg-config
- cmake
- make
- freetype2
- fontconfig
- libxcb
- libxkbcommon
- scdoc
sources:
- https://github.com/alacritty/alacritty
environment:
PATH: /home/build/.cargo/bin:/usr/bin/
tasks:
- rustup: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal
- rustfmt: |
cd alacritty
rustup toolchain install nightly -c rustfmt
cargo +nightly fmt -- --check
- man-pages: |
cd alacritty
cat extra/man/alacritty.1.scd | scdoc > /dev/null
cat extra/man/alacritty-msg.1.scd | scdoc > /dev/null
cat extra/man/alacritty.5.scd | scdoc > /dev/null
cat extra/man/alacritty-bindings.5.scd | scdoc > /dev/null
- test: |
cd alacritty
cargo test
- oldstable: |
cd alacritty
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
rustup component add clippy
cargo clippy --all-targets
- feature-wayland: |
cd alacritty/alacritty
RUSTFLAGS="-D warnings" cargo test --no-default-features --features=wayland
- feature-x11: |
cd alacritty/alacritty
RUSTFLAGS="-D warnings" cargo test --no-default-features --features=x11