-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (45 loc) · 1.33 KB
/
compatibility.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Compatability
on:
push:
paths: [ "src/**", "bin/**", "examples/**", "benches/**", "Cargo.toml"]
workflow_dispatch: {}
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Validate Compatibility
runs-on: ${{ matrix.os }}
strategy:
matrix:
toolchain: [stable, beta, nightly]
os: [ubuntu-latest, macos-latest, windows-latest]
features: ["--features default", "--no-default-features", "--all-features"]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- name: Cache Cargo
uses: Swatinem/rust-cache@v1.3.0
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --release ${{ matrix.features }}
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --release ${{ matrix.features }}
env:
RUST_BACKTRACE: 1
- name: Upload Build Artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}-${{ matrix.toolchain }}-executable
path: |
./target/release/literate
./target/release/literate.exe
if-no-files-found: ignore
retention-days: 0