Skip to content

Commit

Permalink
Create GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MCMrARM authored Nov 4, 2023
1 parent 4191a1c commit 3389fb8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install deps
run: apt-get update && apt-get install -y git cmake zip
- name: Build
run: mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=../sdk/ .. && make && make install && cd ..
- name: Pack the SDK and modloader
run: |
mkdir artifacts && cd sdk &&
zip -r ../artifacts/mod_sdk.zip . && cp lib/libserver_modloader.so ../artifacts && cd ..
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: artifacts

0 comments on commit 3389fb8

Please sign in to comment.