Skip to content

Commit d529a3b

Browse files
committed
Better cross install and caching
1 parent 4bfc7e0 commit d529a3b

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,11 @@ jobs:
9696
- uses: Swatinem/rust-cache@v2
9797
with:
9898
key: ${{ matrix.target }}
99-
- name: Cache cross binary
100-
id: cache-cross
99+
- name: Install cross
101100
if: matrix.use-cross == true
102-
uses: actions/cache@v4
101+
uses: taiki-e/install-action@v2
103102
with:
104-
path: ~/.cargo/bin/cross
105-
key: ${{ runner.os }}-cross-${{ hashFiles('.github/workflows/test.yml') }}
106-
- name: Install cross
107-
if: matrix.use-cross == true && steps.cache-cross.outputs.cache-hit != 'true'
108-
run: cargo install cross --git https://github.com/cross-rs/cross
103+
tool: cross
109104
- name: Build with cross
110105
if: matrix.use-cross == true
111106
env:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rdp"
3-
version = "0.13.4"
3+
version = "0.13.5"
44
authors = ["Stephan Hügel <urschrei@gmail.com>"]
55
description = "An FFI wrapper for the Ramer–Douglas–Peucker and Visvalingam-Whyatt algorithms"
66
readme = "README.md"

0 commit comments

Comments
 (0)