mirror of
https://github.com/denisidoro/navi
synced 2024-11-21 19:13:07 +00:00
Fix cross builds(#829)
This commit is contained in:
parent
bd2fe39fcc
commit
ed10acba61
1 changed files with 3 additions and 14 deletions
17
.github/workflows/cd.yml
vendored
17
.github/workflows/cd.yml
vendored
|
@ -12,17 +12,6 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# This should work with only the `include`s but it currently doesn't because of this bug:
|
|
||||||
# https://github.community/t5/How-to-use-Git-and-GitHub/GitHub-Actions-Matrix-options-dont-work-as-documented/td-p/29558
|
|
||||||
target:
|
|
||||||
- x86_64-apple-darwin
|
|
||||||
- x86_64-unknown-linux-musl
|
|
||||||
- x86_64-pc-windows-gnu
|
|
||||||
- armv7-unknown-linux-musleabihf
|
|
||||||
- armv7-linux-androideabi
|
|
||||||
- aarch64-linux-android
|
|
||||||
- aarch64-unknown-linux-gnu
|
|
||||||
- aarch64-apple-darwin
|
|
||||||
include:
|
include:
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
|
@ -45,15 +34,15 @@ jobs:
|
||||||
with:
|
with:
|
||||||
rust-version: stable
|
rust-version: stable
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
- name: Install target
|
||||||
|
id: installtarget
|
||||||
|
run: rustup target add ${{ matrix.target }}
|
||||||
- name: Build
|
- name: Build
|
||||||
id: build
|
id: build
|
||||||
run: scripts/dot rust release ${{ matrix.target }}
|
run: scripts/dot rust release ${{ matrix.target }}
|
||||||
- name: Get the version
|
- name: Get the version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||||
- name: Install target
|
|
||||||
id: installtarget
|
|
||||||
run: rustup target add ${{ matrix.target }}
|
|
||||||
- name: Upload binaries to release
|
- name: Upload binaries to release
|
||||||
uses: svenstaro/upload-release-action@v1-release
|
uses: svenstaro/upload-release-action@v1-release
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue