From 54b4200e51f6008646783b01fee8a05108c8bb83 Mon Sep 17 00:00:00 2001 From: Andrii Radyk Date: Sat, 2 Nov 2019 14:18:24 +0100 Subject: [PATCH 1/2] test failure workaround --- .github/workflows/build.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bdb61e84..9b4b4026 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,11 +15,13 @@ jobs: - 1.31.0 - stable - beta - # disable because github actions does not have ability to allow failure - # - nightly + - nightly target: - "" - x86_64-unknown-linux-musl + include: + - rust: nightly + allow_failure: true exclude: - os: macOS-latest target: x86_64-unknown-linux-musl @@ -29,12 +31,17 @@ jobs: - os: ubuntu-latest rust: beta target: x86_64-unknown-linux-musl + - os: ubuntu-latest + rust: nightly + target: x86_64-unknown-linux-musl - os: macOS-latest rust: 1.31.0 - os: macOS-latest rust: beta - #- os: macOS-latest - # rust: nightly + - os: macOS-latest + rust: nightly + env: + RUST_BACKTRACE: 1 steps: - uses: actions/checkout@v1 - uses: actions-rs/toolchain@v1 @@ -44,13 +51,13 @@ jobs: - name: Build run: cargo build --all --verbose env: - RUST_BACKTRACE: 1 TARGET: ${{ matrix.target }} + continue-on-error: ${{ matrix.allow_failure }} - name: Run tests run: cargo test --all --verbose env: - RUST_BACKTRACE: 1 TARGET: ${{ matrix.target }} + continue-on-error: ${{ matrix.allow_failure }} fmt: runs-on: ubuntu-latest steps: From a5217de715415606036e5d2c3b57cfe0652d71db Mon Sep 17 00:00:00 2001 From: Andrii Radyk Date: Sat, 16 Nov 2019 22:38:04 +0100 Subject: [PATCH 2/2] switch from depricated actions-rs/components-nightly to actions-rs/toolchain --- .github/workflows/build.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9b4b4026..9f146c58 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,14 +62,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - id: component - uses: actions-rs/components-nightly@v1 - with: - component: rustfmt - uses: actions-rs/toolchain@v1 with: - toolchain: ${{ steps.component.outputs.toolchain }} - override: true + toolchain: nightly components: rustfmt + override: true - name: Run fmt check run: cargo fmt --all -- --check