Skip to content

Commit

Permalink
chore(ci): build binary for riscv64-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
yvt committed Sep 4, 2022
1 parent 66276ce commit 71251eb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ jobs:
# rust: stable
# target: aarch64-unknown-linux-gnu
# cross: true
- build: riscv64-linux
os: ubuntu-20.04
rust: stable
target: riscv64gc-unknown-linux-gnu
cross: true
- build: x86_64-macos
os: macos-latest
rust: stable
Expand Down Expand Up @@ -128,6 +133,15 @@ jobs:
aarch64-linux-gnu-strip \
/target/${{ matrix.target }}/release/hx
- name: Strip release binary (riscv64)
if: matrix.build == 'riscv64-linux'
run: |
docker run --rm -v \
"$PWD/target:/target:Z" \
rustembedded/cross:${{ matrix.target }} \
riscv64-linux-gnu-strip \
/target/${{ matrix.target }}/release/hx
- name: Build AppImage
shell: bash
if: matrix.build == 'x86_64-linux'
Expand Down

0 comments on commit 71251eb

Please sign in to comment.