30 lines
786 B
YAML
30 lines
786 B
YAML
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 librtlsdr-dev
|
|
- 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
|
|
- name: 上传html
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: gmap.html
|
|
path: dump1090/gmap.html |