diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 655e37c..8fc45dd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,6 +3,10 @@ on: release: types: [published] +env: + CARGO_TERM_COLOR: always + RUST_VERSION: 1.68.2 + jobs: validate: runs-on: ubuntu-20.04 @@ -25,10 +29,10 @@ jobs: needs: [validate] steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - override: true + toolchain: ${{ env.RUST_VERSION }} + components: clippy, rustfmt - name: Install dependencies run: make install-deps-apt - uses: katyo/publish-crates@v2 diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 9eb32a8..7a3d56a 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -8,6 +8,7 @@ on: env: CARGO_TERM_COLOR: always + RUST_VERSION: 1.68.2 jobs: build: @@ -20,10 +21,10 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - override: true + toolchain: ${{ env.RUST_VERSION }} + components: clippy, rustfmt - uses: Swatinem/rust-cache@v2 with: key: ${{ matrix.os }} @@ -42,10 +43,9 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - override: true + toolchain: ${{ env.RUST_VERSION }} components: clippy, rustfmt - name: Install dependencies ubuntu run: make install-deps-apt @@ -58,10 +58,9 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - override: true + toolchain: ${{ env.RUST_VERSION }} components: clippy, rustfmt - uses: actions/setup-python@v4 with: