-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
43 additions
and
10 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
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 |