forked from karpathy/llama2.c
-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (39 loc) · 1.03 KB
/
build.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
40
41
42
43
44
45
46
47
48
name: Test on RISC-V
on: [workflow_dispatch, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Download GCC
run: |
python3 -m pip install --upgrade pip
python3 -m pip install gdown
gdown https://drive.google.com/uc?id=1U3JaUqWyRYvlhfA3lVEfwu56em-Gwonl
mkdir xuantie-gcc && cd xuantie-gcc
tar -xf ../xuantie-gcc-v2.8.0.tar.gz
- name: Build
run: |
export PATH=${{ github.workspace }}/xuantie-gcc/bin/:$PATH
make run testcc VERBOSITY=1
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: llama2_riscv
path: |
./run
./testc
test:
needs: build
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Download binaries
uses: actions/download-artifact@v4
with:
name: llama2_riscv
- name: Run tests
run: |
chmod +x ./testc
cp /tmp/stories* .
./testc