From 67c31fa50d6452eb63180d999c62b9483c0ecb43 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Wed, 20 Nov 2019 07:12:15 -0500 Subject: [PATCH] Only do nightly build if tests pass --- .github/workflows/nightly.yml | 52 ++++------------------------------- 1 file changed, 6 insertions(+), 46 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index e26d89850b..a164badfa2 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -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