From ec57c796172e725df783e25f6483861a27838b00 Mon Sep 17 00:00:00 2001 From: Mendelt Siebenga Date: Tue, 22 Nov 2022 20:44:13 +0100 Subject: [PATCH] simplify and update ci --- .github/workflows/ci.yml | 20 +++++--------------- .github/workflows/publish.yml | 4 ++-- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d1a5ff..87347ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,16 +11,12 @@ jobs: rustfmt: name: Rust fmt runs-on: ubuntu-latest - strategy: - matrix: - rust: - - stable steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: ${{ matrix.rust }} + toolchain: stable override: true - run: rustup component add rustfmt - uses: actions-rs/cargo@v1 @@ -31,18 +27,12 @@ jobs: check: name: Check for warnings runs-on: ubuntu-latest - strategy: - matrix: - rust: - - stable - - beta - - 1.56.0 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: ${{ matrix.rust }} + toolchain: stable override: true - name: set rust options to fail on warnings run: echo "RUSTFLAGS=-D warnings" >> $GITHUB_ENV @@ -60,7 +50,7 @@ jobs: - beta - 1.56.0 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: profile: minimal diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8795f34..2d5db12 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,13 +11,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Rust uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: nightly + toolchain: stable override: true - name: Publish