Skip to content

Commit 8981810

Browse files
committed
add ci for native build
1 parent 67634aa commit 8981810

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

.github/workflows/kamaji_ci.yml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,47 @@ on:
77
workflow_dispatch:
88

99
jobs:
10+
build_streamter:
11+
name: Build MIDAS:native_hilsim_streamer
12+
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
working-directory: MIDAS
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Cache pip
19+
uses: actions/cache@v3
20+
with:
21+
path: ~/.cache/pip
22+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
23+
restore-keys: |
24+
${{ runner.os }}-pip-
25+
- name: Cache PlatformIO
26+
uses: actions/cache@v3
27+
with:
28+
path: ~/.platformio
29+
key: ${{ runner.os }}-pio-${{ hashFiles('**/platformio.ini') }}
30+
restore-keys: |
31+
${{ runner.os }}-pio-
32+
- name: Set up Python
33+
uses: actions/setup-python@v4
34+
with:
35+
python-version: '3.11'
36+
- name: Install PlatformIO
37+
run: |
38+
python -m pip install --upgrade pip
39+
pip install --upgrade platformio
40+
- name: PlatformIO version
41+
run: pio --version
42+
- name: Build native_hilsim_streamer
43+
run: pio run -e native_hilsim_streamer
44+
- name: Upload Artifact for native_hilsim_streamer
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: executable-native_hilsim_streamer
48+
path: MIDAS/.pio/build/native_hilsim_streamer/program*.*
49+
50+
1051
build_sustainer:
1152
name: Build MIDAS:mcu_hilsim_sustainer
1253
runs-on: ubuntu-latest
@@ -89,7 +130,7 @@ jobs:
89130

90131
notify:
91132
name: Slack Notification (main)
92-
needs: [build_sustainer, build_booster]
133+
needs: [build_streamer, build_sustainer, build_booster]
93134
runs-on: ubuntu-latest
94135
if: github.ref == 'refs/heads/main'
95136
steps:

0 commit comments

Comments
 (0)