Skip to content

Commit c09a46e

Browse files
authored
Merge pull request #47 from python-project-templates/tkp/rs2
Have rust use actions-ext steps
2 parents 98c8f14 + 68b64c4 commit c09a46e

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

rust/.github/workflows/build.yml.jinja

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -39,32 +39,7 @@ jobs:
3939
with:
4040
version: {% raw %}${{ matrix.python-version }}{% endraw %}
4141

42-
- name: Set up Rust
43-
uses: dtolnay/rust-toolchain@stable
44-
with:
45-
toolchain: stable
46-
components: clippy, rustfmt
47-
48-
- name: Setup Rust cache
49-
uses: Swatinem/rust-cache@v2
50-
with:
51-
key: {% raw %}${{ matrix.os }}{% endraw %}
52-
53-
- name: Setup rust targets (MacOS)
54-
run: |
55-
rustup toolchain install stable-x86_64-apple-darwin
56-
rustup target add x86_64-apple-darwin
57-
rustup toolchain install stable-aarch64-apple-darwin
58-
rustup target add aarch64-apple-darwin
59-
if: matrix.os == 'macos-latest'
60-
61-
- name: Setup rust targets (Windows)
62-
run: |
63-
rustup toolchain install stable-x86_64-pc-windows-msvc
64-
rustup target add x86_64-pc-windows-msvc
65-
rustup toolchain install stable-i686-pc-windows-msvc
66-
rustup target add i686-pc-windows-msvc
67-
if: matrix.os == 'windows-latest'
42+
- uses: actions-ext/rust/setup@main
6843

6944
- name: Install dependencies
7045
run: make develop

0 commit comments

Comments
 (0)