-
Notifications
You must be signed in to change notification settings - Fork 15
56 lines (44 loc) · 2.08 KB
/
compile.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
name: PMON Compile CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install deps
run: sudo apt-get install -y flex bison xutils-dev
- name: Download toolchain
run: wget -O /tmp/gcc-4.4.0-pmon.tgz https://github.com/loongson-community/pmon-mips-toolchain/raw/main/gcc-4.4.0-pmon.tgz
- name: Install toolchain
run: sudo tar -zxvf /tmp/gcc-4.4.0-pmon.tgz -C /opt/
- name: Compile and install pmoncfg
run: cd tools/pmoncfg && make && sudo cp pmoncfg /opt/gcc-4.4.0-pmon/bin/
- name: Setup env
run: echo "/opt/gcc-4.4.0-pmon/bin" >> $GITHUB_PATH && echo "LD_LIBRARY_PATH=/opt/gcc-4.4.0-pmon/lib" >> $GITHUB_ENV && mkdir output
- name: Compile 2edev
run: cd zloader.2edev && make cfg && make tgt=rom && cd ..
- name: Collect 2edev
run: cp zloader/gzrom.bin output/pmon-2edev.bin && md5sum output/pmon-2edev.bin > output/pmon-2edev.bin.md5
- name: Compile ls2k-pi2
run: cd zloader.ls2k-pi2 && make cfg && make tgt=rom && make dtb && cd ..
- name: Collect ls2k-pi2
run: cp zloader/gzrom-dtb.bin output/pmon-ls2k-pi2.bin && md5sum output/pmon-ls2k-pi2.bin > output/pmon-ls2k-pi2.bin.md5
- name: Compile ls2k-edu
run: cd zloader.ls2k-edu && make cfg && make tgt=rom && make dtb && cd ..
- name: Collect ls2k-edu
run: cp zloader/gzrom-dtb.bin output/pmon-ls2k-edu.bin && md5sum output/pmon-ls2k-edu.bin > output/pmon-ls2k-edu.bin.md5
- name: Compile 3avirt
run: cd zloader.3avirt && make cfg && make tgt=rom && cd ..
- name: Collect 3avirt
run: cp zloader/gzrom.bin output/pmon-3avirt.bin && md5sum output/pmon-3avirt.bin > output/pmon-3avirt.bin.md5
- name: Compile lm-a1901
run: cd zloader.lm-a1901 && make cfg && make tgt=rom && cd ..
- name: Collect lm-a1901
run: cp zloader/gzrom.bin output/pmon-lm-a1901.bin && md5sum output/pmon-lm-a1901.bin > output/pmon-lm-a1901.bin.md5
- name: Upload outputs
uses: actions/upload-artifact@v2
with:
name: output
path: output/