-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (33 loc) · 1.06 KB
/
dist-riscv64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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