Skip to content

Commit

Permalink
lock Rust version in CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
thombruce committed Nov 17, 2023
1 parent 4f7621f commit 64af3c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

env:
binary: verse
rust: 1.73.0

jobs:
# Build for Linux
Expand All @@ -19,6 +19,7 @@ jobs:
lfs: 'true'
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.rust }}
targets: x86_64-unknown-linux-gnu
- name: install dependencies
run: |
Expand All @@ -38,6 +39,7 @@ jobs:
lfs: 'true'
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.rust }}
targets: x86_64-pc-windows-msvc

- name: Build
Expand All @@ -54,6 +56,7 @@ jobs:
lfs: 'true'
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.rust }}
targets: x86_64-apple-darwin
- name: Environment Setup
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- '*'

env:
rust: 1.73.0
binary: verse
add_binaries_to_github_release: true

Expand All @@ -22,6 +23,7 @@ jobs:
lfs: 'true'
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.rust }}
targets: x86_64-unknown-linux-gnu
- name: install dependencies
run: |
Expand Down Expand Up @@ -70,6 +72,7 @@ jobs:
lfs: 'true'
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.rust }}
targets: x86_64-pc-windows-msvc

- name: Build
Expand Down Expand Up @@ -114,6 +117,7 @@ jobs:
lfs: 'true'
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.rust }}
targets: x86_64-apple-darwin
- name: Environment Setup
run: |
Expand Down

0 comments on commit 64af3c2

Please sign in to comment.