From f9bd0967bc72cfca2b07fdff33274484fd2b918c Mon Sep 17 00:00:00 2001 From: gamingdoom <37276884+gamingdoom@users.noreply.github.com> Date: Tue, 17 Oct 2023 19:14:54 -0700 Subject: [PATCH] Add github actions Linux build --- .github/workflows/cmake-linux.yml | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/cmake-linux.yml diff --git a/.github/workflows/cmake-linux.yml b/.github/workflows/cmake-linux.yml new file mode 100644 index 0000000..4dd828b --- /dev/null +++ b/.github/workflows/cmake-linux.yml @@ -0,0 +1,34 @@ +name: CMake Windows Build + +on: [push, pull_request, workflow_dispatch] + +env: + BUILD_TYPE: Release + +jobs: + windows-build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + submodules: 'true' + + - name: Create Build Environment + run: cmake -E make_directory ${{github.workspace}}/build-linux + + - name: Configure CMake + shell: bash + working-directory: ${{github.workspace}}/build-linux + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build + working-directory: ${{github.workspace}}/build-linux + shell: bash + run: cmake --build . --config $BUILD_TYPE + + - name: Archive artifacts + uses: actions/upload-artifact@v2 + with: + name: BeamMP-Launcher + path: ${{github.workspace}}/build-linux/Release/BeamMP-Launcher