Skip to content

Fix UB in SharedLibrary #146

Fix UB in SharedLibrary

Fix UB in SharedLibrary #146

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Build:
strategy:
matrix:
config: [debug, debugoptimized, release]
standalone: [~, --standalone]
machine:
- os: ubuntu-latest
action: gmake2
toolset: gcc
- os: ubuntu-latest
action: gmake2
toolset: clang
- os: windows-latest
action: vs2019
toolset: msc
exclude:
- config: debug
standalone: --standalone
- config: debugoptimized
standalone: --standalone
runs-on: ${{ matrix.machine.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup premake
uses: abel0b/setup-premake@v2.2
with:
version: "5.0.0-beta1"
- name: Install X11
if: matrix.machine.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install -y libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
- name: Install GCC
if: matrix.machine.os == 'ubuntu-latest' && matrix.machine.toolset == 'gcc'
run: sudo apt install -y gcc g++
- name: Install Clang & LLVM
if: matrix.machine.os == 'ubuntu-latest' && matrix.machine.toolset == 'clang'
run: sudo apt install -y clang llvm lld
- name: Install msbuild to PATH
if: matrix.machine.os == 'windows-latest' && matrix.machine.toolset == 'msc'
uses: microsoft/setup-msbuild@v1.1
- name: Run premake
run: premake5 ${{ matrix.machine.action }} --toolset=${{ matrix.machine.toolset }} ${{ matrix.standalone }} --unity
- name: Build
run: premake5 build --config=${{ matrix.config }} ${{ matrix.standalone }}
- name: Upload build
if: failure()
uses: actions/upload-artifact@v3
with:
name: Fail-${{ matrix.machine.os }}-${{ matrix.machine.toolset }}-${{ matrix.config }}
if-no-files-found: error
path: |
Mahakam/bin/
Erebor/bin/