-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (49 loc) · 1.31 KB
/
cache-gnu-toolchain.yml
File metadata and controls
55 lines (49 loc) · 1.31 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
name: Cache Gnu Toolchain
on: workflow_dispatch
jobs:
cache-gnu-toolchain:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: pulp-platform/riscv-gnu-toolchain
ref: v2.6.0
- name: Fetch Submodules
run: git submodule update --init --recursive --depth=1 --recommend-shallow riscv-*
- name: Install Apt Packages
run: |
sudo apt-get update
sudo apt-get install \
autoconf \
automake \
autotools-dev \
bc \
bison \
build-essential \
ca-certificates \
curl \
cmake \
flex \
gawk \
git \
gperf \
libexpat-dev \
libgmp-dev \
libmpc-dev \
libmpfr-dev \
libtool \
patchutils \
python3 \
python3-pip \
texinfo \
zlib1g-dev
- name: Build
run: |
./configure --prefix=$GITHUB_WORKSPACE/toolchain/gnu --with-arch=rv32imfcxpulpv3 --with-abi=ilp32 --enable-multilib
make -j 8
- name: Cache
uses: actions/cache/save@v4
with:
path: toolchain/gnu
key: toolchain-gnu