28 lines
703 B
YAML
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
|