-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (49 loc) · 1.64 KB
/
build.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
name: Build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install Pico SDK and toolchain
run: |
git clone -b "1.5.0" --depth=1 https://github.com/raspberrypi/pico-sdk.git
cd pico-sdk
git submodule update --init --depth=1
cd ..
sudo apt-get update
sudo apt-get install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential
- name: Install PanDoc and LaTeX
run: |
sudo apt-get install pandoc texlive-latex-recommended texlive-latex-extra texlive-fonts-extra
- name: Install Eisvogel PanDoc template
run: |
wget https://github.com/Wandmalfarbe/pandoc-latex-template/releases/download/v2.0.0/Eisvogel-2.0.0.zip
unzip Eisvogel-2.0.0.zip eisvogel.latex
- name: Build binaries
env:
PICO_SDK_PATH: ${{ github.workspace }}/pico-sdk
run: |
cmake -B build
make -C build
- name: Build tools
run: |
zip wificred-store.zip wificred-store.py wificred-delete.uf2
- name: Build documentation
run: |
git log -1 --date=short "--format=format:date: %cd %h%n" >> README.yaml
pandoc -s -o README.pdf -t latex --metadata-file=README.yaml --template eisvogel README.md
- name: Save binary as release
uses: "czietz/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
title: "Latest firmware"
prerelease: false
files: |
build/picowifi.uf2
wificred-store.zip
README.pdf