1
0
expvintl 2b11a3ad58
All checks were successful
构建DDNet_Server / build (push) Successful in 1m23s
更新 .gitea/workflows/build.yaml
2024-05-05 02:30:29 +08:00

28 lines
703 B
YAML

name: 构建DDNet_Server
run-name: ${{ gitea.actor }} 测试项目 🚀
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 设置环境
run: |
sudo apt update
sudo apt -y install gcc g++ bc git cmake rustc cargo libwebsockets-dev
- name: 拉取项目
run: |
git clone http://192.168.6.4:3000/expvintl/DDNet_Server
- name: 构建项目
run: |
cd DDNet_Server
mkdir build
cd build
cmake ..
make -j8
ls -al
- name: 🚀上传构建🚀
uses: actions/upload-artifact@v2
with:
name: DDNetServer
path: ~/DDNet_Server/build/DDNet-Server