Skip to content

Deploy game on Linux #122

Deploy game on Linux

Deploy game on Linux #122

name: Deploy game on Linux
on:
workflow_dispatch:
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout repsoitory
uses: actions/checkout@v4
- name: C/C++ dev tools
run: |
echo 'deb http://dk.archive.ubuntu.com/ubuntu/ xenial main' | sudo tee --append /etc/apt/sources.list
echo 'deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe' | sudo tee --append /etc/apt/sources.list
sudo apt update
sudo apt-get install build-essential gcc-5-multilib g++-5-multilib
- uses: lukka/get-cmake@latest
- name: Configure CMake
run: >
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/cmake/LinuxToolchain.cmake
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j3
- name: Upload Binaries
uses: actions/upload-artifact@v4
with:
name: linux-x86
path: |
bin/*.so