Skip to content

Updated dependencies #481

Updated dependencies

Updated dependencies #481

Workflow file for this run

name: ci
on: [push, pull_request]
jobs:
build:
name: Build and Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-16.04
- ubuntu-18.04
- ubuntu-20.04
# - windows-latest
- macos-latest
rust:
- stable
# - beta
- nightly
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@master
with:
version: "12.0"
directory: ${{ runner.temp }}/llvm
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- name: Build
run: cargo build --all
- name: Tests
run: cargo test --all
- name: Clippy
run: cargo clippy --all -- -D warnings
# cover:
# name: Test cover
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 1
#
# - uses: actions/cache@v2
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/git
# target
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
#
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: nightly
# override: true
#
# - name: Install grcov
# run: cargo install grcov
# - name: Run grcov
# env:
# RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"
# RUSTDOCFLAGS: "-Cpanic=abort"
# CARGO_INCREMENTAL: 0
# run: |
# cargo build;
# cargo test;
# grcov ./target/debug/ -s . -t lcov --llvm \
# --ignore-not-existing \
# --ignore *.cargo/* \
# --ignore *core* \
# --ignore *std* \
# --ignore *alloc/* \
# --ignore *rustup* \
# --ignore *_test* \
# --ignore *src/ast.rs* \
# -o lcov.info
# - uses: actions/upload-artifact@v2
# with:
# name: lcov.info
# path: lcov.info
#
# - name: Push grcov results to Coveralls via GitHub Action
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: "lcov.info"