File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff 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
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 }}
You can’t perform that action at this time.
0 commit comments