Port CI from GitLab CI to Forgejo Actions
Some checks failed
CI / build_image (push) Failing after 2m31s
Some checks failed
CI / build_image (push) Failing after 2m31s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f119f58f40
commit
75892255ef
2 changed files with 25 additions and 16 deletions
25
.forgejo/workflows/ci.yml
Normal file
25
.forgejo/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["**"]
|
||||
tags: ["**"]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build_image:
|
||||
runs-on: default
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v7
|
||||
- uses: https://code.forgejo.org/actions/setup-python@v7
|
||||
with:
|
||||
python-version: '3'
|
||||
- name: Build firmware
|
||||
run: |
|
||||
pip install -U platformio
|
||||
pio run
|
||||
mv .pio/build/d1_mini_lite/firmware.elf firmware.elf
|
||||
- uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: firmware
|
||||
path: firmware.elf
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
build_image:
|
||||
stage: build
|
||||
image: python:3
|
||||
variables:
|
||||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
||||
before_script:
|
||||
- pip install -U platformio
|
||||
script:
|
||||
- pio run
|
||||
- mv .pio/build/d1_mini_lite/firmware.elf firmware.elf
|
||||
artifacts:
|
||||
paths:
|
||||
- firmware.elf
|
||||
cache:
|
||||
paths:
|
||||
- .cache/pip
|
||||
Loading…
Add table
Add a link
Reference in a new issue