1
0
Files
DDNet_Server/.gitea/workflows/build.yaml
expvintl ca9074a5e7
Some checks failed
构建DDNet_Server / build (push) Failing after 5m46s
更新 .gitea/workflows/build.yaml
2024-05-05 02:46:22 +08:00

29 lines
725 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://mc.null.red:3000/expvintl/DDNet_Server
- name: 构建项目
run: |
cd DDNet_Server
mkdir build
cd build
cmake ..
make -j8
ls -al
strip DDNet-Server
- name: 🚀上传构建🚀
uses: actions/upload-artifact@v2
with:
name: Server
path: DDNet_Server/build/DDNet-Server