Skip to content

Set C++20 and VS2019 for all configs #32

Set C++20 and VS2019 for all configs

Set C++20 and VS2019 for all configs #32

Workflow file for this run

name: CI/CD
on:
push:
paths:
- 'SourceCode/**'
- '.github/workflows/**'
pull_request:
paths:
- 'SourceCode/**'
- '.github/workflows/**'
jobs:
linux:
name: Linux-x86
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [g++, clang++]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install G++ Multilib, Clang++ & OpenGL library
run: |
sudo apt update
sudo apt install -y g++-multilib clang libgl1-mesa-dev
sudo apt install dos2unix
- name: Build
run: |
cd SourceCode/linux
chmod +x gendbg.sh
dos2unix gendbg.sh
chmod +x gendbg.sh
make COMPILER=${{ matrix.compiler }} CFG=release -j2
- name: Deploy
uses: actions/upload-artifact@v4
with:
name: Linux-x86-${{ matrix.compiler }}
path: |
SourceCode/linux/release/client.so
SourceCode/linux/release/client.so.dbg
SourceCode/linux/release/hl.so
SourceCode/linux/release/hl.so.dbg
win32:
name: Win32
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x86
- name: Build
run: msbuild SourceCode/projects/vs2019/HaloGS.sln -t:rebuild -property:Configuration=Release -property:LangVersion=stdcpp20 -maxcpucount:2
- name: Deploy
uses: actions/upload-artifact@v4
with:
name: Win32
path: |
SourceCode/projects/vs2019/Release/hl_cdll/client.dll
SourceCode/projects/vs2019/Release/hl_cdll/client.pdb
SourceCode/projects/vs2019/Release/hldll/hl.dll
SourceCode/projects/vs2019/Release/hldll/hl.pdb