CI: an attempt 2 #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: sudo apt-get install -y git cmake zip libc++1-12 libc++-12-dev | |
- name: Print clang version | |
run: clang++ -v | |
- 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 |