-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
smoketest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: smoketest | ||
run: | | ||
docker pull tinygo/tinygo-dev | ||
docker run --rm -v $GITHUB_WORKSPACE:/workspace -w /workspace tinygo/tinygo-dev tinygo version | ||
docker run --rm -v $GITHUB_WORKSPACE:/workspace -w /workspace tinygo/tinygo-dev /bin/sh -c "git config --global --add safe.directory /workspace && make smoketest" | ||
- name: Upload uf2 files | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: uf2-files | ||
path: ./out/*.uf2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
all: smoketest | ||
|
||
smoketest: | ||
mkdir -p ./out | ||
tinygo build -o ./out/00_basic.uf2 --target waveshare-rp2040-zero --size short ./00_basic | ||
tinygo build -o ./out/01_blinky1.uf2 --target waveshare-rp2040-zero --size short ./01_blinky1 | ||
tinygo build -o ./out/02_blinky2.uf2 --target waveshare-rp2040-zero --size short ./02_blinky2 | ||
tinygo build -o ./out/03_usbcdc-serial.uf2 --target waveshare-rp2040-zero --size short ./03_usbcdc-serial | ||
tinygo build -o ./out/04_usbcdc-echo.uf2 --target waveshare-rp2040-zero --size short ./04_usbcdc-echo | ||
tinygo build -o ./out/05_rotary.uf2 --target waveshare-rp2040-zero --size short ./05_rotary | ||
tinygo build -o ./out/06_joystick.uf2 --target waveshare-rp2040-zero --size short ./06_joystick | ||
tinygo build -o ./out/07_oled.uf2 --target waveshare-rp2040-zero --size short ./07_oled | ||
tinygo build -o ./out/08_oled_tinydraw.uf2 --target waveshare-rp2040-zero --size short ./08_oled_tinydraw | ||
tinygo build -o ./out/09_oled_tinyfont.uf2 --target waveshare-rp2040-zero --size short ./09_oled_tinyfont | ||
tinygo build -o ./out/10_oled_inverted.uf2 --target waveshare-rp2040-zero --size short ./10_oled_inverted | ||
tinygo build -o ./out/11_oled_animation.uf2 --target waveshare-rp2040-zero --size short ./11_oled_animation | ||
tinygo build -o ./out/12_matrix_basic.uf2 --target waveshare-rp2040-zero --size short ./12_matrix_basic | ||
tinygo build -o ./out/13_rotary_button.uf2 --target waveshare-rp2040-zero --size short ./13_rotary_button | ||
tinygo build -o ./out/14_hid_keyboard.uf2 --target waveshare-rp2040-zero --size short ./14_hid_keyboard | ||
tinygo build -o ./out/15_hid_mouse.uf2 --target waveshare-rp2040-zero --size short ./15_hid_mouse |