Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Actions build matrix #127

Merged
merged 1 commit into from
Nov 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI

on:
push:
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.continue-on-error || false }}

strategy:
matrix:
name:
- stable
- beta
- nightly
- "feat: no default features"
- "feat: all features"
- "feat: nom only"

include:
- name: beta
rust: beta
- name: nightly
rust: nightly
continue-on-error: true

- name: "feat: no default features"
features: "--no-default-features"
- name: "feat: all features"
features: "--all-features"
- name: "feat: nom only"
features: "--no-default-features --features nom_parser"

steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust || 'stable' }}

- name: Build
run: cargo build --verbose ${{ matrix.features }}
- name: Run tests
run: cargo test --verbose ${{ matrix.features }} -- --test-threads=1


pdfutil:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1

- name: Build
run: cargo build --verbose --manifest-path pdfutil/Cargo.toml
19 changes: 0 additions & 19 deletions .github/workflows/rust.yml

This file was deleted.