Skip to content

Commit

Permalink
Extract rust toolchain version into variables
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjensen committed Aug 22, 2024
1 parent 9cee954 commit 5e525d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- master

env:
RUST_TOOLCHAIN_VERSION: 1.78.0

jobs:
setup:
runs-on: ubuntu-latest
Expand All @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }})
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5e525d5

Please sign in to comment.