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