From 5e832a478116f556e10366faac1bc7e82840dc82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E8=88=9F=E6=B0=B4=E6=B4=B2?= <840863191@qq.com> Date: Thu, 17 Apr 2025 11:27:00 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9CI=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yaml | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 91006d7..ead2eb8 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -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: - build-and-test: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 + - name: 🔧 Test Codes + run: | + set -e # 任何命令失败都停止执行 - - name: Setup Environment - 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 \ No newline at end of file + echo "Building repository code ${{ gitea.repository }}:${{ gitea.ref }}." \ No newline at end of file