Skip to content

Commit

Permalink
Migrate from Travis CI to GitHub Actions
Browse files Browse the repository at this point in the history
Fixes #14.
  • Loading branch information
chrisduerr committed Nov 10, 2020
1 parent 68b41fc commit 1100c6e
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 52 deletions.
21 changes: 15 additions & 6 deletions .builds/freebsd.yml
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
33 changes: 33 additions & 0 deletions .builds/linux.yml
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
10 changes: 0 additions & 10 deletions .builds/rustfmt.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
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
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

0 comments on commit 1100c6e

Please sign in to comment.