chsrc/.github/workflows/build-on-Linux-riscv64.yml
dependabot[bot] 9256daa5bc Bump uraimo/run-on-arch-action from 2 to 3
Bumps [uraimo/run-on-arch-action](https://github.com/uraimo/run-on-arch-action) from 2 to 3.
- [Release notes](https://github.com/uraimo/run-on-arch-action/releases)
- [Commits](https://github.com/uraimo/run-on-arch-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: uraimo/run-on-arch-action
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-21 13:35:30 +08:00

49 lines
1.4 KiB
YAML

# ---------------------------------------------------------------
# Workflow File : build-on-Linux-riscv64.yml
# File Authors : Aoran Zeng <ccmywish@qq.com>
# Contributors : Nul None <nul@none.org>
# |
# Created On : <2023-09-14>
# Last Modified : <2025-06-20>
#
# Build chsrc on Linux (riscv64) and upload it to GitHub: the 'pre' release
# ---------------------------------------------------------------
name: 构建于 Linux riscv64
on:
push:
branches: [ "gh-build" ]
jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- name: 构建
uses: uraimo/run-on-arch-action@v3
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-build -q
cd chsrc
make build-in-ci-release-mode
mv chsrc-ci-release chsrc-riscv64-linux
cp ./chsrc-riscv64-linux /artifacts
- name: 上传至 'pre' release
uses: softprops/action-gh-release@v2
with:
tag_name: pre
files: |
./artifacts/chsrc-riscv64-linux
token: ${{ secrets.UPLOAD_TO_GITHUB }}