Skip to content

[HL25] Backport (but disabled) Steam Rich Presence commands call #88

[HL25] Backport (but disabled) Steam Rich Presence commands call

[HL25] Backport (but disabled) Steam Rich Presence commands call #88

Workflow file for this run

name: Compile Windows & Liability OS.
on: [push]
env:
BUILD_CONFIGURATION: Release
jobs:
build-windows:
runs-on: windows-latest
env:
POWERSHELL_TELEMETRY_OPTOUT: 1
strategy:
fail-fast: false
matrix:
toolset: [v142]
configuration: [Release]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: CMake generate
run: cmake -T ${{ matrix.toolset }} -A Win32 -B build
- name: Build
run: cmake --build build -j $env:NUMBER_OF_PROCESSORS --config ${{ matrix.configuration }}
build-linux-gcc:
name: build-linux (gcc-${{ matrix.gcc-ver }}, ${{ matrix.configuration }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
gcc-ver: [11]
configuration: [Release]
env:
CC: gcc-${{ matrix.gcc-ver }}
CXX: g++-${{ matrix.gcc-ver }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y g++-${{ matrix.gcc-ver }}-multilib libgl-dev ninja-build rapidjson-dev
- name: CMake generate
run: cmake -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -B build
- name: Build
working-directory: build
run: ninja
build-linux-clang:
name: build-linux (clang-${{ matrix.clang-ver }}, ${{ matrix.configuration }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
clang-ver: [12] # #.0 is interpreted as integer without quotation marks
configuration: [Release]
env:
CC: clang-${{ matrix.clang-ver }}
CXX: clang++-${{ matrix.clang-ver }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup
run: |
if [ '${{ matrix.clang-ver }}' -ge '11' ]; then
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main'
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main'
fi
sudo apt-get update
sudo apt-get install -y clang-${{ matrix.clang-ver }} g++-multilib libgl-dev ninja-build rapidjson-dev
- name: CMake generate
run: |
cmake -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -B build
ls -1
- name: Build
working-directory: build
run: ninja
- name: Publish Linux client binary.
uses: actions/upload-artifact@v4
with:
path: |
build/client.so
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}