-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.35 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
name: herak-raspberry CI
on:
push:
branches: [main]
schedule:
- cron: '0 15 * * THU'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
working-directory: ${{runner.workspace}}/
shell: bash
run: |
sudo apt-get update
sudo apt-get install build-essential git cmake binutils-dev -y
sudo apt install gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib -y
cd ${{runner.workspace}}/herak-raspberry/
git submodule update --init --recursive
cp -f ${{runner.workspace}}/herak-raspberry/scripts/params_ci.txt /${{runner.workspace}}/herak-raspberry/app/solar/params.txt
mkdir ${{runner.workspace}}/herak-raspberry/build/solar-ci
cd ${{runner.workspace}}/herak-raspberry/build/solar-ci
cmake ../../app/solar
make
ls -al ${{runner.workspace}}/herak-raspberry/build/solar-ci/herak-solar.uf2
cp -f ${{runner.workspace}}/herak-raspberry/scripts/params_ci.txt /${{runner.workspace}}/herak-raspberry/app/shaft/params.txt
mkdir ${{runner.workspace}}/herak-raspberry/build/shaft-ci
cd ${{runner.workspace}}/herak-raspberry/build/shaft-ci
cmake ../../app/shaft
make
ls -al ${{runner.workspace}}/herak-raspberry/build/shaft-ci/herak-shaft.uf2