Skip to content

Commit 6215414

Browse files
committed
Support more architectures
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
1 parent c73bab2 commit 6215414

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/cid.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)