-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish binaries for more platforms, including Windows (#490)
- Loading branch information
1 parent
5a68b69
commit 9095e37
Showing
2 changed files
with
86 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,33 +26,43 @@ jobs: | |
asset_name: navi-${{ steps.get_version.outputs.VERSION }}.alfredworkflow | ||
|
||
binary: | ||
name: Publish binary for ${{ matrix.os }} | ||
name: Publish ${{ matrix.target }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
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-osx, x86_64-unknown-linux-musl, armv7-unknown-linux-musleabihf, armv7-linux-androideabi, aarch64-linux-android, x86_64-pc-windows-gnu] | ||
target: | ||
- x86_64-osx | ||
- x86_64-unknown-linux-musl | ||
- x86_64-pc-windows-gnu | ||
- armv7-unknown-linux-musleabihf | ||
- armv7-linux-androideabi | ||
- aarch64-linux-android | ||
- aarch64-apple-ios | ||
include: | ||
- os: macos-latest | ||
target: x86_64-osx | ||
- os: ubuntu-latest | ||
target: x86_64-unknown-linux-musl | ||
- os: ubuntu-latest | ||
target: x86_64-pc-windows-gnu | ||
- os: ubuntu-latest | ||
target: armv7-unknown-linux-musleabihf | ||
- os: ubuntu-latest | ||
target: armv7-linux-androideabi | ||
- os: ubuntu-latest | ||
target: aarch64-linux-android | ||
- os: ubuntu-latest | ||
target: x86_64-pc-windows-gnu | ||
|
||
- os: macos-latest | ||
target: aarch64-apple-ios | ||
steps: | ||
- uses: hecrj/[email protected] | ||
with: | ||
rust-version: stable | ||
- uses: actions/checkout@v1 | ||
- name: Build | ||
id: build | ||
run: scripts/action release ${{ matrix.target }} | ||
- name: Get the version | ||
id: get_version | ||
|
@@ -61,6 +71,6 @@ jobs: | |
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/tar/navi.tar.gz | ||
file: target/tar/navi.${{ steps.build.outputs.EXTENSION }} | ||
tag: ${{ github.ref }} | ||
asset_name: navi-${{ steps.get_version.outputs.VERSION }}-${{ matrix.target }}.tar.gz | ||
asset_name: navi-${{ steps.get_version.outputs.VERSION }}-${{ matrix.target }}.${{ steps.build.outputs.EXTENSION }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters