-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (48 loc) · 1.27 KB
/
Copy pathcache-pulp-sdk.yml
File metadata and controls
56 lines (48 loc) · 1.27 KB
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
49
50
51
52
53
54
55
56
name: Cache PULP-SDK
on: workflow_dispatch
jobs:
cache-pulp-sdk:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: Scheremo/pulp-sdk
ref: scheremo
path: pulp-sdk
- name: Install Apt Packages
run: |
sudo apt-get update
sudo apt-get install -y \
autoconf \
automake \
build-essential \
curl \
cmake \
libtool \
texinfo
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Python Packages
run: pip install argcomplete pyelftools six scons
- name: Restore Cached Gnu Toolchain
uses: actions/cache/restore@v4
with:
path: toolchain/gnu
key: toolchain-gnu
fail-on-cache-miss: true
- name: Build
run: |
export CC=gcc-12
export CXX=g++-12
cd pulp-sdk
export PULP_RISCV_GCC_TOOLCHAIN=$GITHUB_WORKSPACE/toolchain/gnu
source configs/siracusa.sh
make all
- name: Cache
uses: actions/cache/save@v4
with:
path: pulp-sdk
key: pulp-sdk