File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed
Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -109,14 +109,24 @@ jobs:
109109
110110 attach_binaries :
111111 strategy :
112+ fail-fast : false
112113 matrix :
113114 include :
114115 - target : x86_64-unknown-linux-gnu
115116 os : ubuntu-latest
116- - target : x86_64-pc-windows-msvc
117- os : windows-latest
117+ tool : cargo
118118 - target : x86_64-apple-darwin
119119 os : macos-latest
120+ tool : cargo
121+ - target : aarch64-apple-darwin
122+ os : macos-latest
123+ tool : cross
124+ - target : x86_64-pc-windows-msvc
125+ os : windows-latest
126+ tool : cargo
127+ - target : aarch64-pc-windows-msvc
128+ os : windows-latest
129+ tool : cross
120130 needs : [build, test, lint]
121131 runs-on : ${{ matrix.os }}
122132 if : startsWith(github.ref, 'refs/tags/')
@@ -129,12 +139,11 @@ jobs:
129139 toolchain : nightly
130140 target : ${{ matrix.target }}
131141 default : true
142+ - name : Install cross
143+ if : matrix.tool == 'cross'
144+ run : cargo install cross
132145 - name : Build binary
133- uses : actions-rs/cargo@v1
134- with :
135- use-cross : true
136- command : rustc
137- args : --release --locked --bin=ask --target=${{ matrix.target }} -- -C target-feature=+crt-static
146+ run : ${{ matrix.tool }} rustc --release --locked --bin=ask --target=${{ matrix.target }} -- -C target-feature=+crt-static
138147 - name : Upload binary
139148 if : matrix.os != 'windows-latest'
140149 uses : svenstaro/upload-release-action@v2
You can’t perform that action at this time.
0 commit comments