From f014f604ae8b7fa3348e8a38e82dd5fc39f0c0ad Mon Sep 17 00:00:00 2001 From: forever Date: Sat, 8 Jun 2024 17:36:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20.gitea/workflows/build.yam?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..2763c38 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,25 @@ +name: 构建Dump1090 +run-name: ${{ gitea.actor }} 构建项目 🚀 +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: 设置环境 + run: | + sudo apt update + sudo apt -y install build-essential bc git cmake libusb-1.0-0-dev pkg-config + - name: 拉取项目 + run: | + git clone http://mc.null.red:3000/Backups/dump1090 + - name: 构建项目 + run: | + cd dump1090 + make -j8 + ls -al + strip dump1090 + - name: 🚀上传构建🚀 + uses: actions/upload-artifact@v3 + with: + name: dump1090 + path: dump1090/dump1090 \ No newline at end of file