We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 373cb6a commit 2efae67Copy full SHA for 2efae67
1 file changed
.github/workflows/release.yml
@@ -52,8 +52,18 @@ jobs:
52
- uses: dtolnay/rust-toolchain@stable
53
with:
54
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
60
- uses: Swatinem/rust-cache@v2
- - run: cargo build --release --locked --target ${{ matrix.target }}
61
+ - name: Build (Ubuntu via cross)
62
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 }}
67
68
- name: Prepare dist
69
shell: bash
0 commit comments