Enable CI builds #1
Workflow file for this run
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
name: Dist build riscv64 | |
on: [push, pull_request] | |
jobs: | |
dist-riscv64: | |
runs-on: [self-hosted, Linux, RISCV64] | |
container: | |
image: ghcr.io/ruyisdk/ruyi-python-dist:20240121 | |
options: --user root # https://github.com/actions/checkout/issues/1014 | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
volumes: | |
- .:/home/b/ruyi:ro | |
- /tmp/build:/build | |
- /tmp/poetry-cache:/poetry-cache | |
- /tmp/ccache:/ccache | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache deps and Nuitka output | |
uses: actions/cache@v4 | |
with: | |
key: ${{ runner.os }}-tgt-riscv64-lock-${{ hashFiles('poetry.lock') }} | |
path: | | |
/ccache | |
/poetry-cache | |
- name: Run dist | |
run: /home/b/ruyi/scripts/dist-inner.sh | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ruyi.riscv64 | |
path: /build/ruyi | |
compression-level: 0 # the Nuitka onefile payload is already compressed |