1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00
alacritty/.github/workflows/ci.yml
Christian Duerr 1645a70168 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-02-14 01:20:49 +04:00

37 lines
920 B
YAML

name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Stable
run: cargo test
- name: Stable (no default features)
run: cargo test -p alacritty_terminal --no-default-features
- name: Oldstable
run: |
rustup default $(cat alacritty/Cargo.toml | grep "rust-version" | sed 's/.*"\(.*\)".*/\1/')
cargo test
- name: Clippy
run: |
rustup component add clippy
cargo clippy --all-targets
check-macos-arm:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- name: Install target
run: rustup update && rustup target add aarch64-apple-darwin
- name: Build
run: cargo build --target=aarch64-apple-darwin