Skip to content

Commit 7847671

Browse files
committed
Make: Bump Rust & Go CI
1 parent dce1773 commit 7847671

File tree

2 files changed

+15
-27
lines changed

2 files changed

+15
-27
lines changed

.github/workflows/prerelease.yml

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ jobs:
110110
uses: actions/setup-go@v6
111111
with:
112112
go-version: ">=1.24"
113+
cache: false
113114
- name: Test Go binding
114115
working-directory: golang
115116
env:
@@ -169,11 +170,8 @@ jobs:
169170
run: npm install && npm test
170171

171172
# Rust
172-
- name: Test Rust
173-
uses: actions-rs/toolchain@v1
174-
with:
175-
toolchain: stable
176-
override: true
173+
- name: Set up Rust
174+
uses: dtolnay/rust-toolchain@stable
177175

178176
test_ubuntu_clang:
179177
name: Ubuntu (Clang 16) - ${{ matrix.os }}
@@ -240,9 +238,10 @@ jobs:
240238
cmake -B build_shared -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSTRINGZILLA_BUILD_SHARED=1
241239
cmake --build build_shared --target stringzilla_shared --config RelWithDebInfo
242240
- name: Set up Go
243-
uses: actions/setup-go@v5
241+
uses: actions/setup-go@v6
244242
with:
245243
go-version: ">=1.24"
244+
cache: false
246245
- name: Test Go binding
247246
working-directory: golang
248247
env:
@@ -283,11 +282,8 @@ jobs:
283282
run: python -X faulthandler -m pytest scripts/test_stringzilla.py -s -vv --maxfail=1 --full-trace
284283

285284
# Rust
286-
- name: Test Rust
287-
uses: actions-rs/toolchain@v1
288-
with:
289-
toolchain: stable
290-
override: true
285+
- name: Set up Rust
286+
uses: dtolnay/rust-toolchain@stable
291287

292288
# Swift
293289
# Fails due to: https://github.com/swift-actions/setup-swift/issues/591
@@ -517,7 +513,7 @@ jobs:
517513
target_arch: x86-64
518514
target: x86_64-linux-gnu
519515
target_processor: amd64
520-
516+
521517
env:
522518
CC: clang-16
523519
CXX: clang++-16
@@ -550,7 +546,7 @@ jobs:
550546
sudo ./llvm.sh 16
551547
552548
- name: Build C/C++ for ${{ matrix.target_arch }}
553-
run: |
549+
run: |
554550
# Configure and build the project
555551
cmake -B build_artifacts \
556552
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
@@ -647,11 +643,8 @@ jobs:
647643
run: swift test
648644

649645
# Rust
650-
- name: Test Rust
651-
uses: actions-rs/toolchain@v1
652-
with:
653-
toolchain: stable
654-
override: true
646+
- name: Set up Rust
647+
uses: dtolnay/rust-toolchain@stable
655648

656649
test_windows:
657650
name: Windows - ${{ matrix.os }}
@@ -782,11 +775,8 @@ jobs:
782775
run: pytest scripts/test_stringzilla.py -s -x
783776

784777
# Rust
785-
- name: Test Rust
786-
uses: actions-rs/toolchain@v1
787-
with:
788-
toolchain: stable
789-
override: true
778+
- name: Set up Rust
779+
uses: dtolnay/rust-toolchain@stable
790780

791781
build_wheels:
792782
name: Build Python ${{ matrix.python-version }} for ${{ matrix.os }}

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,8 @@ jobs:
534534
- name: Hide submodule Crates
535535
run: |
536536
mv fork_union/Cargo.toml fork_union/Cargo.toml.bak
537-
- uses: actions-rs/toolchain@v1
538-
with:
539-
toolchain: stable
540-
override: true
537+
- name: Set up Rust
538+
uses: dtolnay/rust-toolchain@stable
541539
- uses: katyo/publish-crates@v2
542540
with:
543541
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)