chsrc/.github/workflows/linux-riscv64.yml
2024-06-11 22:45:34 +08:00

37 lines
991 B
YAML

name: Linux riscv64 Build
on:
push:
branches: [ "gh-pipeline" ]
pull_request:
branches: [ "gh-pipeline" ]
jobs:
riscv64-linux-build-and-upload:
runs-on: ubuntu-latest
steps:
- name: Build riscv64
uses: uraimo/run-on-arch-action@v2
with:
arch: riscv64
distro: ubuntu_latest
dockerRunArgs: |
--volume "${PWD}/artifacts:/artifacts"
run: |
apt-get update -qq
apt-get install build-essential -y -q
apt-get install git -y -q
pwd ; ls -al
git clone https://github.com/RubyMetric/chsrc -b gh-pipeline -q
cd chsrc
make CI CI_Build_Name=chsrc-riscv64-linux
cp ./chsrc-riscv64-linux /artifacts
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: pre
files: |
./artifacts/chsrc-riscv64-linux
token: ${{ secrets.CHSRC_UPLOAD }}