File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ smoketest :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : smoketest
17+ run : |
18+ docker pull tinygo/tinygo-dev
19+ docker run --rm -v $GITHUB_WORKSPACE:/workspace -w /workspace tinygo/tinygo-dev tinygo version
20+ docker run --rm -v $GITHUB_WORKSPACE:/workspace -w /workspace tinygo/tinygo-dev /bin/sh -c "git config --global --add safe.directory /workspace && make smoketest"
21+
22+ - name : Upload uf2 files
23+ uses : actions/upload-artifact@v4
24+ with :
25+ name : uf2-files
26+ path : ./out/*.uf2
Original file line number Diff line number Diff line change 1+ all : smoketest
2+
3+ smoketest :
4+ mkdir -p ./out
5+ tinygo build -o ./out/00_basic.uf2 --target waveshare-rp2040-zero --size short ./00_basic
6+ tinygo build -o ./out/01_blinky1.uf2 --target waveshare-rp2040-zero --size short ./01_blinky1
7+ tinygo build -o ./out/02_blinky2.uf2 --target waveshare-rp2040-zero --size short ./02_blinky2
8+ tinygo build -o ./out/03_usbcdc-serial.uf2 --target waveshare-rp2040-zero --size short ./03_usbcdc-serial
9+ tinygo build -o ./out/04_usbcdc-echo.uf2 --target waveshare-rp2040-zero --size short ./04_usbcdc-echo
10+ tinygo build -o ./out/05_rotary.uf2 --target waveshare-rp2040-zero --size short ./05_rotary
11+ tinygo build -o ./out/06_joystick.uf2 --target waveshare-rp2040-zero --size short ./06_joystick
12+ tinygo build -o ./out/07_oled.uf2 --target waveshare-rp2040-zero --size short ./07_oled
13+ tinygo build -o ./out/08_oled_tinydraw.uf2 --target waveshare-rp2040-zero --size short ./08_oled_tinydraw
14+ tinygo build -o ./out/09_oled_tinyfont.uf2 --target waveshare-rp2040-zero --size short ./09_oled_tinyfont
15+ tinygo build -o ./out/10_oled_inverted.uf2 --target waveshare-rp2040-zero --size short ./10_oled_inverted
16+ tinygo build -o ./out/11_oled_animation.uf2 --target waveshare-rp2040-zero --size short ./11_oled_animation
17+ tinygo build -o ./out/12_matrix_basic.uf2 --target waveshare-rp2040-zero --size short ./12_matrix_basic
18+ tinygo build -o ./out/13_rotary_button.uf2 --target waveshare-rp2040-zero --size short ./13_rotary_button
19+ tinygo build -o ./out/14_hid_keyboard.uf2 --target waveshare-rp2040-zero --size short ./14_hid_keyboard
20+ tinygo build -o ./out/15_hid_mouse.uf2 --target waveshare-rp2040-zero --size short ./15_hid_mouse
You can’t perform that action at this time.
0 commit comments