Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2324e94ff8
commit
ef3994eb7f
2 changed files with 26 additions and 9 deletions
26
.forgejo/workflows/ci.yml
Normal file
26
.forgejo/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['**']
|
||||
tags: ['**']
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-image:
|
||||
runs-on: default
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v7
|
||||
- name: Install PlatformIO
|
||||
run: |
|
||||
python3 -m venv "$RUNNER_TEMP/pio"
|
||||
"$RUNNER_TEMP/pio/bin/pip" install -U platformio
|
||||
echo "$RUNNER_TEMP/pio/bin" >> "$GITHUB_PATH"
|
||||
- name: Build
|
||||
run: |
|
||||
pio run
|
||||
mv .pio/build/rpipico/firmware.uf2 firmware.uf2
|
||||
- uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: firmware.uf2
|
||||
path: firmware.uf2
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
build-image:
|
||||
stage: build
|
||||
image: jonasled.dev/jonasled/platformio-docker:latest
|
||||
script:
|
||||
- pio run
|
||||
- mv .pio/build/rpipico/firmware.uf2 firmware.uf2
|
||||
artifacts:
|
||||
paths:
|
||||
- firmware.uf2
|
||||
Loading…
Add table
Add a link
Reference in a new issue