Skip to content

Commit

Permalink
ARM release (#275)
Browse files Browse the repository at this point in the history
* ARM release

* fix

* fix

* fix

* fix

* fix

* bump version

* changelog
  • Loading branch information
chenyan-dfinity authored Sep 9, 2021
1 parent 165f856 commit 6817ce7
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 102 deletions.
38 changes: 28 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,56 @@ on:

jobs:
publish:
name: Release for ${{ matrix.os }}
name: Release for ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
artifact_name: didc
name: linux64
artifact_name: target/release/didc
asset_name: didc-linux64
- os: macos-latest
artifact_name: didc
name: macos
artifact_name: target/release/didc
asset_name: didc-macos
- os: ubuntu-latest
artifact_name: candiff
asset_name: candiff-linux64
- os: macos-latest
artifact_name: candiff
asset_name: candiff-macos
name: arm
artifact_name: target/arm-unknown-linux-gnueabihf/release/didc
asset_name: didc-arm32

steps:
- uses: actions/checkout@v2
- name: Install stable toolchain
if: matrix.name != 'arm'
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions/checkout@v2
- name: Install stable toolchain
if: matrix.name == 'arm'
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: arm-unknown-linux-gnueabihf
- name: Build
if: matrix.name != 'arm'
run: cargo build --release --locked
- name: Cross build
if: matrix.name == 'arm'
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --target arm-unknown-linux-gnueabihf --release --locked
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
file: ${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
Loading

0 comments on commit 6817ce7

Please sign in to comment.