Skip to content

Commit 984178b

Browse files
committed
ci: fix ci
1 parent cb62cd4 commit 984178b

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/test_upload.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,42 +37,36 @@ jobs:
3737
# Native builds
3838
- target: x86_64-unknown-linux-gnu
3939
os: ubuntu-latest
40-
build_tool: cargo
4140
- target: x86_64-pc-windows-msvc
4241
os: windows-latest
43-
build_tool: cargo
4442
- target: i686-pc-windows-msvc
4543
os: windows-latest
46-
build_tool: cargo
4744
- target: universal-apple-darwin
4845
os: macos-latest
49-
build_tool: cargo
5046
- target: aarch64-apple-darwin
5147
os: macos-latest
52-
build_tool: cargo
5348
- target: x86_64-apple-darwin
5449
os: macos-latest
55-
build_tool: cargo
5650

5751
# Builds using cross
5852
- target: x86_64-unknown-linux-musl
5953
os: ubuntu-latest
60-
build_tool: cross
6154
- target: aarch64-unknown-linux-gnu
6255
os: ubuntu-latest
63-
build_tool: cross
6456
- target: x86_64-unknown-freebsd
6557
os: ubuntu-latest
66-
build_tool: cross
6758
- target: x86_64-unknown-illumos
6859
os: ubuntu-latest
69-
build_tool: cross
7060
runs-on: ${{ matrix.os }}
7161
steps:
7262
- uses: actions/checkout@v3
7363
with:
7464
persist-credentials: false
75-
- uses: dtolnay/rust-toolchain@stable
65+
- name: Install cross-compilation tools
66+
uses: taiki-e/setup-cross-toolchain-action@v1
67+
with:
68+
target: ${{ matrix.target }}
69+
if: startsWith(matrix.os, 'ubuntu')
7670
- name: Get tag
7771
if: github.event.inputs.tags == ''
7872
id: tag
@@ -86,7 +80,6 @@ jobs:
8680
bin: git-semver-tags
8781
archive: $bin-${{github.event.inputs.tags || steps.tag.outputs.tag}}-$target
8882
target: ${{ matrix.target }}
89-
build_tool: ${{ matrix.build_tool }}
9083
tar: all
9184
zip: windows
9285
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)