Skip to content

Commit

Permalink
feat: Pin Rust CI to 1.80.0 (#270)
Browse files Browse the repository at this point in the history
* Pin rust to 1.80.0

* debug: print installed

* install windows gnu

* debug: remove debug line
  • Loading branch information
kevaundray authored Sep 24, 2024
1 parent 27760b1 commit 8a76c5c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-csharp-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
toolchain: 1.80.0
target: ${{ matrix.target }}
- name: Install cargo-binstall
uses: taiki-e/install-action@cargo-binstall
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-java-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
toolchain: 1.80.0
targets: ${{ matrix.target }}
- name: Install cargo-binstall
uses: taiki-e/install-action@cargo-binstall
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-node-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
toolchain: 1.80.0
targets: ${{ matrix.settings.target }}

# llvm-preview-tools are needed for xwin, because we are compiling assembly (blst)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-rust-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Setup toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
toolchain: 1.80.0
target: ${{ matrix.target }}

- name: Build
Expand All @@ -76,7 +76,7 @@ jobs:
- name: Setup toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
toolchain: 1.80.0

# These steps are in a specific order so crate dependencies are updated first
- name: Publish maybe_rayon
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-golang-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
toolchain: 1.80.0

- name: Run compile script
run: ./scripts/compile.sh golang
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-nim-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
toolchain: 1.80.0

- name: Run compile script
run: ./scripts/compile.sh nim
Expand Down
6 changes: 6 additions & 0 deletions scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
OS=$(uname)
ARCH=$(uname -m)

# For windows, we install x86_64-pc-windows-gnu, instead of relying on the msvc version
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" || "$OSTYPE" == "cygwin" || "$OSTYPE" == "mingw"* ]]; then
echo "Installing x86_64-pc-windows-gnu target for Rust..."
rustup target add x86_64-pc-windows-gnu
fi

# Function to compile for Java
compile_java() {
echo "Compiling for Java..."
Expand Down

0 comments on commit 8a76c5c

Please sign in to comment.