-
Notifications
You must be signed in to change notification settings - Fork 56
64 lines (51 loc) · 1.68 KB
/
build_os_ulinux_rv32ima.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
name: Build OS KianV RV32IMA ASIC Tiny Tapeout uLinux
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential device-tree-compiler cpio rsync file wget unzip bc
- name: Build OS
working-directory: asic/os/ulinux_asic_kianv_soc
run: make all bootloader
- name: Prepare artifact
working-directory: asic/os/ulinux_asic_kianv_soc
run: |
mkdir -p artifact_files
cp kianv.dtb bootloader/bootloader.bin buildroot/output/images/Image artifact_files
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: ulinux_asic_kianv_soc_firmware
path: asic/os/ulinux_asic_kianv_soc/artifact_files
simulate:
runs-on: ubuntu-24.04
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y qemu-system-misc expect
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: ulinux_asic_kianv_soc_firmware
path: asic/os/ulinux_asic_kianv_soc/artifact_files
- name: Copy system image
working-directory: asic/os/ulinux_asic_kianv_soc
run: |
rm Image
cp artifact_files/Image Image
- name: Run simulation
working-directory: asic/os/ulinux_asic_kianv_soc
run: expect test_system.tcl