lzokay-rs/.github/workflows/build.yaml

39 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2021-08-25 15:28:57 -07:00
name: build
on: [ push, pull_request ]
jobs:
default:
name: Default
strategy:
matrix:
platform: [ ubuntu-latest, macos-latest, windows-latest ]
toolchain: [ stable, 1.46.0, nightly ]
features:
- compress,alloc
- compress,decompress
- compress,decompress,std
fail-fast: false
runs-on: ${{ matrix.platform }}
steps:
2021-08-25 15:56:21 -07:00
- name: Install LLVM and Clang # required for bindgen to work, see https://github.com/rust-lang/rust-bindgen/issues/1797
uses: KyleMayes/install-llvm-action@v1
2021-08-25 15:59:53 -07:00
if: matrix.platform == 'windows-latest'
2021-08-25 15:56:21 -07:00
with:
version: 12.0.1
directory: ${{ runner.temp }}/llvm
- name: Set LIBCLANG_PATH
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
2021-08-25 15:59:53 -07:00
if: matrix.platform == 'windows-latest'
2021-08-25 15:28:57 -07:00
- uses: actions/checkout@v2
2021-08-25 15:31:38 -07:00
with:
submodules: recursive
2021-08-25 15:28:57 -07:00
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --release --no-default-features --features ${{ matrix.features }}