This commit is contained in:
parent
eb85c1046a
commit
5e832a4781
@ -1,20 +1,21 @@
|
|||||||
name: Embedded CI
|
name: CI Pipeline
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
on: [push, pull_request]
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: 🔍 Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
jobs:
|
- name: 🔧 Test Codes
|
||||||
build-and-test:
|
run: |
|
||||||
runs-on: ubuntu-latest
|
set -e # 任何命令失败都停止执行
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Setup Environment
|
echo "Building repository code ${{ gitea.repository }}:${{ gitea.ref }}."
|
||||||
run: |
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y python3 python3-pip python3-venv
|
|
||||||
python3 -m pip install --upgrade platformio
|
|
||||||
|
|
||||||
- name: Build Project
|
|
||||||
run: |
|
|
||||||
pio run
|
|
Loading…
Reference in New Issue
Block a user