try a matrix for rust stable and beta
This commit is contained in:
parent
43ff80f28f
commit
de78fcf0f6
|
@ -70,33 +70,6 @@ jobs:
|
||||||
RUST_BACKTRACE: full
|
RUST_BACKTRACE: full
|
||||||
run: cargo build --verbose --no-default-features
|
run: cargo build --verbose --no-default-features
|
||||||
|
|
||||||
build-beta:
|
|
||||||
name: Build using rust beta on ${{ matrix.os }}
|
|
||||||
timeout-minutes: 30
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: beta
|
|
||||||
override: true
|
|
||||||
- name: Install LLVM on Windows
|
|
||||||
if: matrix.os == 'windows-latest'
|
|
||||||
run: choco install llvm -y
|
|
||||||
- name: cargo fetch
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: fetch
|
|
||||||
- name: Build
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: --verbose --release
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build on ${{ matrix.os }}
|
name: Build on ${{ matrix.os }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
@ -104,12 +77,13 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||||
|
rust: [stable,beta]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: ${{ matrix.rust }}
|
||||||
override: true
|
override: true
|
||||||
- name: Install LLVM on Windows
|
- name: Install LLVM on Windows
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
|
|
Loading…
Reference in New Issue