File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Pico2 logic sniffer firmware
2+
3+ on :
4+ push :
5+ workflow_dispatch :
6+ pull_request :
7+
8+ jobs :
9+ build_firmware :
10+ name : Build Pico2 logic sniffer firmware
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Check out code from GitHub
15+ uses : actions/checkout@v4
16+
17+ - name : Install platformio
18+ run : |
19+ pip install -U platformio
20+
21+ - name : Build firmware
22+ run : |
23+ pio run
24+ cp .pio/build/pico2/firmware.elf pico2_logic_sniffer.elf
25+ cp .pio/build/pico2/firmware.uf2 pico2_logic_sniffer.uf2
26+
27+ - name : Test decoder script
28+ run : |
29+ python utils/decode_sniff.py utils/testdata/sniff_700Hz_567kHz.dat
30+
31+ - name : Upload binaries into build artifacts
32+ uses : actions/upload-artifact@v4
33+ with :
34+ path : pico2_logic_sniffer.*
35+ name : Pico2 logic sniffer firmware
36+
37+ - name : Upload to newly created release
38+ env :
39+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
41+ run : |
42+ RELEASE=$(basename ${{github.ref}})
43+ gh release upload --repo ${GITHUB_REPOSITORY} $RELEASE pico2_logic_sniffer.*
44+
You can’t perform that action at this time.
0 commit comments