From dc44b8c3ed8e58f8f2a2edf43c0e279052419c1a Mon Sep 17 00:00:00 2001 From: BIGBOX516 <3765799942@qq.com> Date: Sat, 25 Oct 2025 02:09:12 +0800 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9f91705 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Build phira-mp-server + +on: + push: + branches: [ main ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + - name: Build + run: cargo build --release -p phira-mp-server + + - name: Upload Binary + uses: actions/upload-artifact@v3 + with: + name: phira-mp-server + path: target/release/phira-mp-server