Skip to content

Commit 457f087

Browse files
committed
ci: Update.
1 parent 150d46e commit 457f087

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/ci.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-22.04
88
steps:
99
# Checkout Repository
1010
- name: Checkout
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v3
12+
13+
- name: Setup CCache
14+
uses: hendrikmuhs/[email protected]
1215

1316
# Install Tools
1417
- name: Install Tools
@@ -23,15 +26,12 @@ jobs:
2326
- name: Install LiteX
2427
run: |
2528
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
26-
python3 litex_setup.py init install --user
29+
python3 litex_setup.py --init --install --user
2730
2831
# Install RISC-V GCC
2932
- name: Install RISC-V GCC
3033
run: |
31-
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
32-
python3 litex_setup.py gcc
33-
sudo mkdir /usr/local/riscv
34-
sudo cp -r $PWD/../riscv64-*/* /usr/local/riscv
34+
sudo python3 litex_setup.py --gcc=riscv
3535
3636
# Install Project
3737
- name: Install Project
@@ -40,5 +40,4 @@ jobs:
4040
# Test
4141
- name: Run Tests
4242
run: |
43-
export PATH=/usr/local/riscv/bin:$PATH
4443
python3 setup.py test

0 commit comments

Comments
 (0)