-
Notifications
You must be signed in to change notification settings - Fork 2
86 lines (83 loc) · 3.05 KB
/
main.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: build & test
on: [push]
jobs:
ubuntu-build-colorlight-i5:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: YosysHQ/setup-oss-cad-suite@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: True
components: rustfmt, clippy
target: riscv32imac-unknown-none-elf
- run: cargo install svd2rust
- run: svd2rust --version
- uses: gregdavill/setup-riscv-gnu-toolchain@v2
- run: riscv-none-elf-gcc --version
- name: Install python packages
run: |
python3 -m pip install setuptools
python3 -m pip install pycrc
python3 -m pip install wheel
python3 -m pip install construct
python3 -m pip install Sphinx sphinxcontrib-wavedrom meson ninja setuptools_scm Jinja2
- run: git submodule update --init --recursive
- run: mkdir -p build
- run: python3 example-colorlight-i5.py --ecppack-compress --cpu-type vexriscv --cpu-variant imac --csr-svd build/colorlight_i5/csr.svd --build
- uses: actions/upload-artifact@v3
with:
name: bitstream-artifacts
path: |
build/colorlight_i5/gateware/colorlight_i5.bit
build/colorlight_i5/csr.svd
- name: Build firmware (rust)
run: |
cd firmware
BOARD=colorlight_i5 ./build.sh
- uses: actions/upload-artifact@v3
with:
name: firmware-artifacts
path: |
build/colorlight_i5/rust-fw.bin
ubuntu-build-ecpix-5:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: YosysHQ/setup-oss-cad-suite@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: True
components: rustfmt, clippy
target: riscv32imac-unknown-none-elf
- run: cargo install svd2rust
- run: svd2rust --version
- uses: gregdavill/setup-riscv-gnu-toolchain@v2
- run: riscv-none-elf-gcc --version
- name: Install python packages
run: |
python3 -m pip install setuptools
python3 -m pip install pycrc
python3 -m pip install wheel
python3 -m pip install construct
python3 -m pip install Sphinx sphinxcontrib-wavedrom meson ninja setuptools_scm Jinja2
- run: git submodule update --init --recursive
- run: mkdir -p build
- run: python3 example-ecpix-5.py --ecppack-compress --cpu-type vexriscv --cpu-variant imac --csr-svd build/lambdaconcept_ecpix5/csr.svd --build
- uses: actions/upload-artifact@v3
with:
name: bitstream-artifacts
path: |
build/lambdaconcept_ecpix5/gateware/lambdaconcept_ecpix5.bit
build/lambdaconcept_ecpix5/csr.svd
- name: Build firmware (rust)
run: |
cd firmware
BOARD=lambdaconcept_ecpix5 ./build.sh
- uses: actions/upload-artifact@v3
with:
name: firmware-artifacts
path: |
build/lambdaconcept_ecpix5/rust-fw.bin