From 3fba0caeb2150d2255fc00bff366fb7db922032e Mon Sep 17 00:00:00 2001 From: Mathew Davies Date: Fri, 26 May 2023 20:49:03 +0000 Subject: [PATCH] ci: use dtolnay/rust-toolchain in main build --- .github/workflows/main-rust.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main-rust.yml b/.github/workflows/main-rust.yml index e1dd8dd..eaac707 100644 --- a/.github/workflows/main-rust.yml +++ b/.github/workflows/main-rust.yml @@ -1,4 +1,4 @@ -name: Rust +name: Rust Build & Publish on: push: @@ -13,13 +13,19 @@ env: jobs: build: - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout sources + uses: actions/checkout@v3 - name: Cache Packages - uses: Swatinem/rust-cache@v1.0.1 + uses: Swatinem/rust-cache@2 + + - name: Install stable toolchain + uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable - name: Build run: cargo build --release @@ -28,7 +34,7 @@ jobs: continue-on-error: true run: cargo publish --no-verify --token ${{ secrets.CARGO_REGISTRY_TOKEN }} - - uses: actions/upload-artifact@v2.2.1 + - uses: actions/upload-artifact@v3 name: Upload a Build Artifact with: name: libreddit