Added example script with documentation. #125
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 server | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
name: Build on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, windows-latest ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Enable Developer Command Prompt | |
uses: ilammy/[email protected] | |
- name: Get latest CMake and ninja | |
uses: lukka/get-cmake@latest | |
- name: Configure | |
run: cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DRORSERVER_WITH_ANGELSCRIPT=ON . | |
- name: Build | |
run: ninja | |
- name: Upload bin folder | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ror-server-${{ matrix.os }} | |
path: bin |