From 8fc4fa9ccef965dc12d6165b8ba44eaf55097943 Mon Sep 17 00:00:00 2001 From: Francesco Soncina Date: Fri, 13 Sep 2019 23:32:28 +0200 Subject: [PATCH 1/8] Update rust.yml --- .github/workflows/rust.yml | 154 +++++++++++++++++++++++++++++++++++-- 1 file changed, 148 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fec17ad..090a31f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,14 +2,156 @@ name: Rust on: [push] +defaults: &defaults + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable, nightly] + jobs: + print_toolchain: + <<: *defaults + steps: + - name: Print toolchain + run: | + rustup run ${{ matrix.rust }} rustc --version + rustup run ${{ matrix.rust }} cargo --version + rustup run ${{ matrix.rust }} rustup --version + + checkout: + <<: *defaults + steps: + - uses: actions/checkout@v1 + - uses: actions/upload-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: target + build: + <<: *defaults + needs: [checkout] + steps: + - uses: actions/download-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + - name: Build + run: rustup run ${{ matrix.rust }} cargo build --verbose + - uses: actions/upload-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: target - runs-on: ubuntu-latest + build_release: + <<: *defaults + needs: [checkout, build] + steps: + - uses: actions/download-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + - name: Build + run: rustup run ${{ matrix.rust }} cargo build --release --verbose + - uses: actions/upload-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: target + + test: + <<: *defaults + needs: [build] + steps: + - uses: actions/download-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + - name: Run tests + run: rustup run ${{ matrix.rust }} cargo test --verbose + - uses: actions/upload-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: target + + test_release: + <<: *defaults + needs: [build_release] + steps: + - uses: actions/download-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + - name: Run tests + run: rustup run ${{ matrix.rust }} cargo test --release --verbose + - uses: actions/upload-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: target + + fmt: + <<: *defaults + needs: [checkout] + steps: + - uses: actions/download-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + - name: Install rustfmt + run: rustup run ${{ matrix.rust }} rustup component add rustfmt + - name: Run rustfmt + run: rustup run ${{ matrix.rust }} cargo fmt + + clippy: + <<: *defaults + needs: [checkout] + steps: + - uses: actions/download-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + - name: Install clippy + run: rustup run ${{ matrix.rust }} rustup component add clippy + - name: Run clippy + run: rustup run ${{ matrix.rust }} cargo clippy + + check: + <<: *defaults + needs: [checkout] + steps: + - uses: actions/download-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + - name: Run cargo check + run: rustup run ${{ matrix.rust }} cargo check + + bench: + <<: *defaults + needs: [bench_master, build_release] + steps: + - uses: actions/download-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + - name: Run cargo bench + run: rustup run ${{ matrix.rust }} cargo bench + + bench_master: + <<: *defaults + needs: [build_release] + steps: + - uses: actions/download-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + - uses: actions/checkout@v1 + with: + ref: master + - name: Run cargo bench on master + run: rustup run ${{ matrix.rust }} cargo bench + - uses: actions/upload-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: target + deploy: + <<: *defaults + needs: [build, build_release, fmt, check, clippy, test, test_release, bench] steps: - - uses: actions/checkout@v1 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - name: Deploy + run: echo todo + - uses: actions/upload-artifact@v1 + with: + name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: target From 49a0d96b26cb3a4bc3b4869aca28f394a9eca139 Mon Sep 17 00:00:00 2001 From: Francesco Soncina Date: Fri, 13 Sep 2019 23:34:03 +0200 Subject: [PATCH 2/8] Update rust.yml --- .github/workflows/rust.yml | 79 +++++++++++++++++++++++++++++--------- 1 file changed, 60 insertions(+), 19 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 090a31f..d6520a9 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,16 +2,13 @@ name: Rust on: [push] -defaults: &defaults - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] - rust: [stable, nightly] - jobs: print_toolchain: - <<: *defaults + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable, nightly] steps: - name: Print toolchain run: | @@ -20,7 +17,11 @@ jobs: rustup run ${{ matrix.rust }} rustup --version checkout: - <<: *defaults + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable, nightly] steps: - uses: actions/checkout@v1 - uses: actions/upload-artifact@v1 @@ -29,7 +30,11 @@ jobs: path: target build: - <<: *defaults + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable, nightly] needs: [checkout] steps: - uses: actions/download-artifact@v1 @@ -43,7 +48,11 @@ jobs: path: target build_release: - <<: *defaults + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable, nightly] needs: [checkout, build] steps: - uses: actions/download-artifact@v1 @@ -57,7 +66,11 @@ jobs: path: target test: - <<: *defaults + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable, nightly] needs: [build] steps: - uses: actions/download-artifact@v1 @@ -71,7 +84,11 @@ jobs: path: target test_release: - <<: *defaults + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable, nightly] needs: [build_release] steps: - uses: actions/download-artifact@v1 @@ -85,7 +102,11 @@ jobs: path: target fmt: - <<: *defaults + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable, nightly] needs: [checkout] steps: - uses: actions/download-artifact@v1 @@ -97,7 +118,11 @@ jobs: run: rustup run ${{ matrix.rust }} cargo fmt clippy: - <<: *defaults + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable, nightly] needs: [checkout] steps: - uses: actions/download-artifact@v1 @@ -109,7 +134,11 @@ jobs: run: rustup run ${{ matrix.rust }} cargo clippy check: - <<: *defaults + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable, nightly] needs: [checkout] steps: - uses: actions/download-artifact@v1 @@ -119,7 +148,11 @@ jobs: run: rustup run ${{ matrix.rust }} cargo check bench: - <<: *defaults + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable, nightly] needs: [bench_master, build_release] steps: - uses: actions/download-artifact@v1 @@ -129,7 +162,11 @@ jobs: run: rustup run ${{ matrix.rust }} cargo bench bench_master: - <<: *defaults + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable, nightly] needs: [build_release] steps: - uses: actions/download-artifact@v1 @@ -146,7 +183,11 @@ jobs: path: target deploy: - <<: *defaults + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + rust: [stable, nightly] needs: [build, build_release, fmt, check, clippy, test, test_release, bench] steps: - name: Deploy From d5fe561583a7938905a221ab1f4000d516b0ca2e Mon Sep 17 00:00:00 2001 From: Francesco Soncina Date: Fri, 13 Sep 2019 23:39:30 +0200 Subject: [PATCH 3/8] Update rust.yml --- .github/workflows/rust.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d6520a9..37353c7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} - path: target + path: . build: runs-on: ${{ matrix.os }} @@ -45,7 +45,7 @@ jobs: - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} - path: target + path: . build_release: runs-on: ${{ matrix.os }} @@ -63,7 +63,7 @@ jobs: - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} - path: target + path: . test: runs-on: ${{ matrix.os }} @@ -81,7 +81,7 @@ jobs: - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} - path: target + path: . test_release: runs-on: ${{ matrix.os }} @@ -99,7 +99,7 @@ jobs: - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} - path: target + path: . fmt: runs-on: ${{ matrix.os }} @@ -180,7 +180,7 @@ jobs: - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} - path: target + path: . deploy: runs-on: ${{ matrix.os }} @@ -195,4 +195,4 @@ jobs: - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} - path: target + path: . From bcfa7e6badd6d56ed292ee9a56eedc35b6410835 Mon Sep 17 00:00:00 2001 From: Francesco Soncina Date: Fri, 13 Sep 2019 23:46:57 +0200 Subject: [PATCH 4/8] Update rust.yml --- .github/workflows/rust.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 37353c7..09f01d0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -12,9 +12,9 @@ jobs: steps: - name: Print toolchain run: | - rustup run ${{ matrix.rust }} rustc --version - rustup run ${{ matrix.rust }} cargo --version - rustup run ${{ matrix.rust }} rustup --version + rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} rustc --version + rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo --version + rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} rustup --version checkout: runs-on: ${{ matrix.os }} @@ -41,7 +41,7 @@ jobs: with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} - name: Build - run: rustup run ${{ matrix.rust }} cargo build --verbose + run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo build --verbose - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} @@ -59,7 +59,7 @@ jobs: with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} - name: Build - run: rustup run ${{ matrix.rust }} cargo build --release --verbose + run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo build --release --verbose - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} @@ -77,7 +77,7 @@ jobs: with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} - name: Run tests - run: rustup run ${{ matrix.rust }} cargo test --verbose + run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo test --verbose - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} @@ -95,7 +95,7 @@ jobs: with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} - name: Run tests - run: rustup run ${{ matrix.rust }} cargo test --release --verbose + run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo test --release --verbose - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} @@ -113,9 +113,9 @@ jobs: with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} - name: Install rustfmt - run: rustup run ${{ matrix.rust }} rustup component add rustfmt + run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} rustup component add rustfmt - name: Run rustfmt - run: rustup run ${{ matrix.rust }} cargo fmt + run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo fmt clippy: runs-on: ${{ matrix.os }} @@ -129,9 +129,9 @@ jobs: with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} - name: Install clippy - run: rustup run ${{ matrix.rust }} rustup component add clippy + run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} rustup component add clippy - name: Run clippy - run: rustup run ${{ matrix.rust }} cargo clippy + run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo clippy check: runs-on: ${{ matrix.os }} @@ -145,7 +145,7 @@ jobs: with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} - name: Run cargo check - run: rustup run ${{ matrix.rust }} cargo check + run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo check bench: runs-on: ${{ matrix.os }} @@ -159,7 +159,7 @@ jobs: with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} - name: Run cargo bench - run: rustup run ${{ matrix.rust }} cargo bench + run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo bench bench_master: runs-on: ${{ matrix.os }} @@ -176,7 +176,7 @@ jobs: with: ref: master - name: Run cargo bench on master - run: rustup run ${{ matrix.rust }} cargo bench + run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo bench - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} From 7bd94f7e9397197b013ddafc84ac68189281366f Mon Sep 17 00:00:00 2001 From: Francesco Soncina Date: Fri, 13 Sep 2019 23:58:33 +0200 Subject: [PATCH 5/8] Update rust.yml --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 09f01d0..26596f7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -7,7 +7,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, windows-latest] rust: [stable, nightly] steps: - name: Print toolchain From 6a5a5468c17462d4e75f0bc940b7197759f9de1b Mon Sep 17 00:00:00 2001 From: Francesco Soncina Date: Sat, 14 Sep 2019 01:19:25 +0200 Subject: [PATCH 6/8] Update rust.yml --- .github/workflows/rust.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 26596f7..5494036 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -7,7 +7,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest, windows-latest, macOS-latest] rust: [stable, nightly] steps: - name: Print toolchain @@ -40,6 +40,7 @@ jobs: - uses: actions/download-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: . - name: Build run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo build --verbose - uses: actions/upload-artifact@v1 @@ -58,6 +59,7 @@ jobs: - uses: actions/download-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: . - name: Build run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo build --release --verbose - uses: actions/upload-artifact@v1 @@ -76,6 +78,7 @@ jobs: - uses: actions/download-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: . - name: Run tests run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo test --verbose - uses: actions/upload-artifact@v1 @@ -94,6 +97,7 @@ jobs: - uses: actions/download-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: . - name: Run tests run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo test --release --verbose - uses: actions/upload-artifact@v1 @@ -112,6 +116,7 @@ jobs: - uses: actions/download-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: . - name: Install rustfmt run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} rustup component add rustfmt - name: Run rustfmt @@ -128,6 +133,7 @@ jobs: - uses: actions/download-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: . - name: Install clippy run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} rustup component add clippy - name: Run clippy @@ -144,6 +150,7 @@ jobs: - uses: actions/download-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: . - name: Run cargo check run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo check @@ -158,6 +165,7 @@ jobs: - uses: actions/download-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: . - name: Run cargo bench run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo bench @@ -172,6 +180,7 @@ jobs: - uses: actions/download-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} + path: . - uses: actions/checkout@v1 with: ref: master From bc54bde7768e73caf219ebe2951dca1b5051235d Mon Sep 17 00:00:00 2001 From: Francesco Soncina Date: Sat, 14 Sep 2019 01:20:58 +0200 Subject: [PATCH 7/8] Update rust.yml --- .github/workflows/rust.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5494036..c313fdd 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -7,7 +7,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, windows-latest] rust: [stable, nightly] steps: - name: Print toolchain @@ -20,7 +20,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, windows-latest] rust: [stable, nightly] steps: - uses: actions/checkout@v1 @@ -33,7 +33,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, windows-latest] rust: [stable, nightly] needs: [checkout] steps: @@ -52,7 +52,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, windows-latest] rust: [stable, nightly] needs: [checkout, build] steps: @@ -71,7 +71,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, windows-latest] rust: [stable, nightly] needs: [build] steps: @@ -90,7 +90,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, windows-latest] rust: [stable, nightly] needs: [build_release] steps: @@ -109,7 +109,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, windows-latest] rust: [stable, nightly] needs: [checkout] steps: @@ -126,7 +126,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, windows-latest] rust: [stable, nightly] needs: [checkout] steps: @@ -143,7 +143,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, windows-latest] rust: [stable, nightly] needs: [checkout] steps: @@ -158,7 +158,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, windows-latest] rust: [stable, nightly] needs: [bench_master, build_release] steps: @@ -173,7 +173,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, windows-latest] rust: [stable, nightly] needs: [build_release] steps: @@ -195,7 +195,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, windows-latest] rust: [stable, nightly] needs: [build, build_release, fmt, check, clippy, test, test_release, bench] steps: From c4ac5ca7e866e4229cb99d7f90b10bae06b606ce Mon Sep 17 00:00:00 2001 From: Francesco Soncina Date: Sat, 14 Sep 2019 01:41:52 +0200 Subject: [PATCH 8/8] Update rust.yml --- .github/workflows/rust.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c313fdd..0138cfa 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -12,9 +12,9 @@ jobs: steps: - name: Print toolchain run: | - rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} rustc --version - rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo --version - rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} rustup --version + rustup toolchain install ${{ matrix.rust }} --no-self-update && rustup run ${{ matrix.rust }} rustc --version + rustup toolchain install ${{ matrix.rust }} --no-self-update && rustup run ${{ matrix.rust }} cargo --version + rustup toolchain install ${{ matrix.rust }} --no-self-update && rustup run ${{ matrix.rust }} rustup --version checkout: runs-on: ${{ matrix.os }} @@ -42,7 +42,7 @@ jobs: name: workspace-${{ matrix.os }}-${{ matrix.rust }} path: . - name: Build - run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo build --verbose + run: rustup toolchain install ${{ matrix.rust }} --no-self-update && rustup run ${{ matrix.rust }} cargo build --verbose - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} @@ -61,7 +61,7 @@ jobs: name: workspace-${{ matrix.os }}-${{ matrix.rust }} path: . - name: Build - run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo build --release --verbose + run: rustup toolchain install ${{ matrix.rust }} --no-self-update && rustup run ${{ matrix.rust }} cargo build --release --verbose - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} @@ -80,7 +80,7 @@ jobs: name: workspace-${{ matrix.os }}-${{ matrix.rust }} path: . - name: Run tests - run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo test --verbose + run: rustup toolchain install ${{ matrix.rust }} --no-self-update && rustup run ${{ matrix.rust }} cargo test --verbose - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} @@ -99,7 +99,7 @@ jobs: name: workspace-${{ matrix.os }}-${{ matrix.rust }} path: . - name: Run tests - run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo test --release --verbose + run: rustup toolchain install ${{ matrix.rust }} --no-self-update && rustup run ${{ matrix.rust }} cargo test --release --verbose - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }} @@ -118,9 +118,9 @@ jobs: name: workspace-${{ matrix.os }}-${{ matrix.rust }} path: . - name: Install rustfmt - run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} rustup component add rustfmt + run: rustup toolchain install ${{ matrix.rust }} --no-self-update && rustup run ${{ matrix.rust }} rustup component add rustfmt - name: Run rustfmt - run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo fmt + run: rustup toolchain install ${{ matrix.rust }} --no-self-update && rustup run ${{ matrix.rust }} cargo fmt clippy: runs-on: ${{ matrix.os }} @@ -135,9 +135,9 @@ jobs: name: workspace-${{ matrix.os }}-${{ matrix.rust }} path: . - name: Install clippy - run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} rustup component add clippy + run: rustup toolchain install ${{ matrix.rust }} --no-self-update && rustup run ${{ matrix.rust }} rustup component add clippy - name: Run clippy - run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo clippy + run: rustup toolchain install ${{ matrix.rust }} --no-self-update && rustup run ${{ matrix.rust }} cargo clippy check: runs-on: ${{ matrix.os }} @@ -152,7 +152,7 @@ jobs: name: workspace-${{ matrix.os }}-${{ matrix.rust }} path: . - name: Run cargo check - run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo check + run: rustup toolchain install ${{ matrix.rust }} --no-self-update && rustup run ${{ matrix.rust }} cargo check bench: runs-on: ${{ matrix.os }} @@ -167,7 +167,7 @@ jobs: name: workspace-${{ matrix.os }}-${{ matrix.rust }} path: . - name: Run cargo bench - run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo bench + run: rustup toolchain install ${{ matrix.rust }} --no-self-update && rustup run ${{ matrix.rust }} cargo bench bench_master: runs-on: ${{ matrix.os }} @@ -185,7 +185,7 @@ jobs: with: ref: master - name: Run cargo bench on master - run: rustup toolchain install ${{ matrix.rust }} && rustup run ${{ matrix.rust }} cargo bench + run: rustup toolchain install ${{ matrix.rust }} --no-self-update && rustup run ${{ matrix.rust }} cargo bench - uses: actions/upload-artifact@v1 with: name: workspace-${{ matrix.os }}-${{ matrix.rust }}