-
Notifications
You must be signed in to change notification settings - Fork 4
104 lines (93 loc) · 2.7 KB
/
Copy pathci.yml
File metadata and controls
104 lines (93 loc) · 2.7 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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# vhdl:
roms:
runs-on: ubuntu-latest
container:
image: rickardvonessen/pasmo:0.6.0.20070113.0-1
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: checkout the code
uses: actions/checkout@v2
- name: Build ZX Spectrum ROM
run: |
apt-get update
apt-get install -y make xxd gcc
make -C roms all
- name: Archive built ROMs
uses: actions/upload-artifact@v2
with:
name: spectrum-roms
path: |
roms/*.rom
webapp:
runs-on: ubuntu-latest
steps:
- name: checkout the code
uses: actions/checkout@v2
- name: Build Webapp with Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: cd webapp && npm install
- run: cd webapp && npm run build --prod && npm run package
#- run: cd webapp && npm run lint TODO add this after fixing lint issues
# - run: npm test TODO
# env:
# CI: true
- name: Archive built Angular Webapp
uses: actions/upload-artifact@v2
with:
name: webapp
path: |
webapp/dist/webapp-only-gzip/*
esp32:
needs: roms
runs-on: ubuntu-latest
container:
image: espressif/idf:release-v4.2
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout the code
uses: actions/checkout@v1
with:
submodules: true
- name: Fetch ROM
uses: actions/download-artifact@v2
with:
name: spectrum-roms
path: roms
- name: Build esp32 host-mode firmware
run: |
apt-get update
apt-get install -y libglib2.0-dev qtbase5-dev qtbase5-dev-tools libusb-1.0-0-dev
. $IDF_PATH/export.sh
make -C esp32/host
- name: Archive built host-mode firmware
uses: actions/upload-artifact@v2
with:
name: host-mode-fw
path: |
esp32/host/interfacez
esp32/host/libinterfacez.so
esp32/host/QtSpecem/libQtSpecem.so.1
esp32/host/QtSpecem/libQtSpecem.so.1.0.0
esp32/host/gui/interfacez_gui
- name: Build esp32 main firmware
run: |
. $IDF_PATH/export.sh
make -C esp32
- name: Archive built main firmware
uses: actions/upload-artifact@v2
with:
name: main-fw
path: |
esp32/build/**/*.bin