-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from Travis CI to GitHub Actions
Fixes #14.
- Loading branch information
1 parent
68b41fc
commit 1100c6e
Showing
5 changed files
with
86 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
image: freebsd/latest | ||
|
||
packages: | ||
- devel/cmake | ||
- devel/pkgconf | ||
- print/freetype2 | ||
- x11-fonts/fontconfig | ||
- x11-fonts/dejavu | ||
|
||
sources: | ||
- https://github.com/alacritty/crossfont | ||
|
||
environment: | ||
PATH: /home/build/.cargo/bin:/bin:/usr/bin:/usr/local/bin | ||
|
||
tasks: | ||
- rustup: | | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal | ||
- stable: | | ||
- test: | | ||
cd crossfont | ||
$HOME/.cargo/bin/cargo +stable test | ||
- 1-43-0: | | ||
$HOME/.cargo/bin/rustup toolchain install --profile minimal 1.43.0 | ||
cargo test | ||
- clippy: | | ||
cd crossfont | ||
rm Cargo.lock | ||
$HOME/.cargo/bin/cargo +1.43.0 test | ||
rustup component add clippy | ||
cargo clippy --all-targets | ||
- oldstable: | | ||
cd crossfont | ||
rustup toolchain install --profile minimal 1.43.1 | ||
cargo +1.43.1 test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
image: archlinux | ||
|
||
packages: | ||
- pkg-config | ||
- cmake | ||
- freetype2 | ||
- fontconfig | ||
- dina-font | ||
|
||
sources: | ||
- https://github.com/alacritty/crossfont | ||
|
||
environment: | ||
PATH: /home/build/.cargo/bin:/usr/bin/ | ||
|
||
tasks: | ||
- rustup: | | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal | ||
- test: | | ||
cd crossfont | ||
cargo test | ||
- rustfmt: | | ||
cd crossfont | ||
rustup toolchain install nightly -c rustfmt | ||
cargo +nightly fmt -- --check | ||
- clippy: | | ||
cd crossfont | ||
rustup component add clippy | ||
cargo clippy --all-targets | ||
- oldstable: | | ||
cd crossfont | ||
rustup toolchain install --profile minimal 1.43.1 | ||
cargo +1.43.1 test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
rust_version: [stable, 1.43.1] | ||
os: [windows-latest, macos-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Rustup | ||
run: rustup default ${{ matrix.rust_version }} | ||
- name: Test | ||
run: cargo test | ||
|
||
clippy: | ||
strategy: | ||
matrix: | ||
os: [windows-latest, macos-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Rustup | ||
run: rustup default ${{ matrix.rust_version }} | ||
- name: Install Clippy | ||
run: rustup component add clippy | ||
- name: Lint | ||
run: cargo clippy --all-targets |
This file was deleted.
Oops, something went wrong.