47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
name: Build and Test Suite
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
- dev
|
|
jobs:
|
|
build-tests:
|
|
name: Test and Build
|
|
env:
|
|
SCCACHE_CACHE_SIZE: "1G"
|
|
SCCACHE_IDLE_TIMEOUT: 0
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
|
strategy:
|
|
matrix:
|
|
platform:
|
|
- ubuntu-16.04
|
|
- macos-latest
|
|
- windows2019 # custom runner
|
|
toolchain:
|
|
- stable
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@main
|
|
with:
|
|
submodules: true
|
|
- name: Install toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: ${{ matrix.toolchain }}
|
|
profile: minimal
|
|
override: true
|
|
- name: Build tests
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --locked --all --release --features "json-tests" --verbose --no-run
|
|
- name: Run tests for ${{ matrix.platform }}
|
|
if: matrix.platform != 'windows2019'
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --locked --all --release --features "json-tests" --verbose
|