From 5e525d55d5caaa4c4dabc4269d52f9df80c51a4a Mon Sep 17 00:00:00 2001 From: Andrew Jensen Date: Thu, 22 Aug 2024 14:42:16 -0600 Subject: [PATCH] Extract rust toolchain version into variables --- .github/workflows/ci.yml | 5 ++++- .github/workflows/release.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9669c15..528b75a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,9 @@ on: branches: - master +env: + RUST_TOOLCHAIN_VERSION: 1.78.0 + jobs: setup: runs-on: ubuntu-latest @@ -31,7 +34,7 @@ jobs: - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable with: - toolchain: 1.78.0 + toolchain: $RUST_TOOLCHAIN_VERSION - uses: actions/cache@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index df0bdbd..97ac908 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,9 @@ on: tags: - "*" +env: + RUST_TOOLCHAIN_VERSION: 1.78.0 + jobs: build_release: name: NIF ${{ matrix.nif }} - ${{ matrix.job.target }} (${{ matrix.job.os }}) @@ -64,7 +67,7 @@ jobs: - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable with: - toolchain: 1.78.0 + toolchain: $RUST_TOOLCHAIN_VERSION target: ${{ matrix.job.target }} - name: Build the project