Only do nightly build if tests pass

This commit is contained in:
Richard Feldman 2019-11-20 07:12:15 -05:00
parent ba018d9283
commit 67c31fa50d

View File

@ -5,29 +5,8 @@ on:
name: Nightly Release Build
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install LLVM
run: sudo ./ci/install-llvm.sh 8
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
name: update cargo (needed for Inkwell)
with:
command: update
- uses: actions-rs/cargo@v1
name: cargo test
with:
command: test --release
juild:
name: Build
build:
name: Test and Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
@ -41,30 +20,11 @@ jobs:
name: update cargo (needed for Inkwell)
with:
command: update
- uses: actions-rs/cargo@v1
name: cargo test
with:
command: test --release
- uses: actions-rs/cargo@v1
name: cargo build
with:
command: build --release
# clippy:
# name: Clippy
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: Install LLVM
# run: sudo ./ci/install-llvm.sh 8
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# override: true
# - run: rustup component add clippy
# - uses: actions-rs/cargo@v1
# name: update cargo (needed for Inkwell)
# with:
# command: update
# - uses: actions-rs/cargo@v1
# name: cargo clippy
# with:
# command: clippy
# args: --release -- -D warnings