Skip to content

README.md: First version #214

README.md: First version

README.md: First version #214

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
rust:
- stable
include:
- os: ubuntu-latest
rust: 1.41.1
- os: ubuntu-latest
rust: nightly
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
if: ${{ matrix.rust == 'stable' }}
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: cargo build
- run: cargo test
- run: cargo bench
- uses: actions/upload-artifact@v2
if: ${{ matrix.rust == 'stable' }}
with:
path: |
target
!target/**/*.d
!target/**/*.rlib
!target/**/.cargo-lock
!target/**/.fingerprint
!target/**/CACHEDIR.TAG
!target/**/build
!target/**/deps
!target/**/incremental
name: libtw2-${{ matrix.os }}
check-generated:
name: Check that generated files match
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: ./generate_all
- run: test -z "$(git status --porcelain)"