Skip to content

Merge pull request #7 from KredeGC/reference-allocator #202

Merge pull request #7 from KredeGC/reference-allocator

Merge pull request #7 from KredeGC/reference-allocator #202

Workflow file for this run

name: Staging
on:
push:
branches: [ master ]
jobs:
Build:
strategy:
matrix:
config: [debug, release]
dialect: [C++17, C++20]
machine:
- host: linux
os: ubuntu-latest
action: gmake2
toolset: gcc
- host: linux
os: ubuntu-latest
action: gmake2
toolset: clang
- host: windows
os: windows-latest
action: vs2019
toolset: msc
runs-on: ${{ matrix.machine.os }}
permissions:
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup premake
uses: abel0b/setup-premake@v2.2
with:
version: "5.0.0-beta1"
- name: Install GCC
if: matrix.machine.toolset == 'gcc'
run: sudo apt update && sudo apt install -y gcc g++
- name: Install Clang & LLVM
if: matrix.machine.toolset == 'clang'
run: sudo apt update && sudo apt install -y clang llvm lld
- name: Clang libstdc++ image workaround
if: matrix.machine.toolset == 'clang'
uses: mjp41/workaround8649@7929373c0fe5caf844d8115adccef39e3b5362e7
with:
os: ${{ matrix.machine.os }}
- name: Install msbuild to PATH
if: matrix.machine.toolset == 'msc'
uses: microsoft/setup-msbuild@v1.1
- name: Run premake
run: premake5 ${{ matrix.machine.action }} --toolset=${{ matrix.machine.toolset }} --dialect=${{ matrix.dialect }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: cpp
- name: Build
run: premake5 build --config=${{ matrix.config }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- name: Run test
run: premake5 test --config=${{ matrix.config }}