Skip to content

Commit 2efae67

Browse files
committed
Fix GitHub Actions release matrix targets
1 parent 373cb6a commit 2efae67

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,18 @@ jobs:
5252
- uses: dtolnay/rust-toolchain@stable
5353
with:
5454
targets: ${{ matrix.target }}
55+
- name: Install cross
56+
if: startsWith(matrix.os, 'ubuntu')
57+
uses: taiki-e/install-action@v2
58+
with:
59+
tool: cross
5560
- uses: Swatinem/rust-cache@v2
56-
- run: cargo build --release --locked --target ${{ matrix.target }}
61+
- name: Build (Ubuntu via cross)
62+
if: startsWith(matrix.os, 'ubuntu')
63+
run: cross build --release --locked --target ${{ matrix.target }}
64+
- name: Build (non-Ubuntu)
65+
if: "!startsWith(matrix.os, 'ubuntu')"
66+
run: cargo build --release --locked --target ${{ matrix.target }}
5767

5868
- name: Prepare dist
5969
shell: bash

0 commit comments

Comments
 (0)