2020-11-06 23:52:56 +00:00
|
|
|
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:
|
2023-05-10 19:06:40 +05:30
|
|
|
- uses: actions/checkout@v3
|
2020-11-17 13:21:51 +00:00
|
|
|
- name: Stable
|
2020-11-06 23:52:56 +00:00
|
|
|
run: cargo test
|
2024-01-06 07:05:55 +01:00
|
|
|
- name: Stable (no default features)
|
|
|
|
run: cargo test -p alacritty_terminal --no-default-features
|
2021-02-27 15:06:22 +00:00
|
|
|
- name: Oldstable
|
|
|
|
run: |
|
2024-02-12 21:01:20 +01:00
|
|
|
rustup default $(cat alacritty/Cargo.toml | grep "rust-version" | sed 's/.*"\(.*\)".*/\1/')
|
2021-02-27 15:06:22 +00:00
|
|
|
cargo test
|
2020-11-17 13:21:51 +00:00
|
|
|
- name: Clippy
|
|
|
|
run: |
|
|
|
|
rustup component add clippy
|
|
|
|
cargo clippy --all-targets
|
2021-08-17 18:04:46 +00:00
|
|
|
check-macos-arm:
|
|
|
|
runs-on: macos-11
|
|
|
|
steps:
|
2023-05-10 19:06:40 +05:30
|
|
|
- uses: actions/checkout@v3
|
2021-08-17 18:04:46 +00:00
|
|
|
- name: Install target
|
|
|
|
run: rustup update && rustup target add aarch64-apple-darwin
|
2022-01-13 03:23:37 +01:00
|
|
|
- name: Build
|
|
|
|
run: cargo build --target=aarch64-apple-darwin
|