Skip to content

Refactor/mutliplayer #77

Refactor/mutliplayer

Refactor/mutliplayer #77

Workflow file for this run

name: Continuous Integration
on:
workflow_dispatch:
inputs:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
env:
DISPLAY: :99.0
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install OpenGL in linux
run: |
sudo apt-get update
sudo apt-get install -y locate libgl1-mesa-dev libglfw3
Xvfb :99 &
if: matrix.os == 'ubuntu-latest'
- name: Install SegoeUI Emoji font in linux
run: |
sudo mkdir /usr/share/fonts/truetype/windows
sudo wget -O /usr/share/fonts/truetype/windows/seguiemj.ttf https://github.com/Vyshnav2255/Windows-11-Emojis-on-Linux/blob/main/seguiemj.ttf?raw=true
fc-cache -f
if: matrix.os == 'ubuntu-latest'
- name: Install OpenAl on linux
run: |
sudo apt-get install libopenal1 alsa-utils alsa-oss pulseaudio
sudo bash -c 'echo "autospawn = yes" >>/etc/pulse/client.conf'
pulseaudio --start
if: matrix.os == 'ubuntu-latest'
- name: Setup OpenGL on windows
run: ./.github/install-mesa-windows.ps1
if: matrix.os == 'windows-latest'
- name: Install OpenAl on windows
run: choco install openal
if: matrix.os == 'windows-latest'
- name: Setup .NET 7
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
include-prerelease: true
- name: Build
run: dotnet build ./OctoAwesome/OctoAwesome.sln --configuration Release
- name: Publish Client
run: dotnet publish ./OctoAwesome/OctoAwesome.Client/OctoAwesome.Client.csproj --configuration Release --output OctoAwesomeClient
- name: Upload Client
uses: actions/[email protected]
with:
name: OctoAwesomeClient-${{ matrix.os }}
path: OctoAwesomeClient/
- name: Publish Server
run: dotnet publish ./OctoAwesome/OctoAwesome.GameServer/OctoAwesome.GameServer.csproj --configuration Release --output OctoAwesomeServer
- name: Upload Server
uses: actions/[email protected]
with:
name: OctoAwesomeServer-${{ matrix.os }}
path: OctoAwesomeServer/