Bump libs/spdlog from ffd5aa4
to e593f66
(#778)
#3794
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
env: | |
# Compile in parallel where possible. | |
CL: /MP | |
# Path to the CMake build directory. | |
build: '${{ github.workspace }}/build' | |
# Triggers the workflow on push or pull request events for all branches. | |
on: [ push, pull_request ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ windows-2022 ] | |
arch: [ x86 ] | |
conf: [ Debug, Release ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
submodules: recursive | |
- name: Configure ${{ matrix.arch }} | |
shell: cmd | |
run: cmake -B ${{ env.build }} -H. -A Win32 # ${{ matrix.arch }} | |
- name: Build ${{ matrix.conf }} | |
shell: cmd | |
run: cmake --build build --config ${{ matrix.conf }} | |
- name: Upload artifacts for ${{ matrix.conf }}-${{ matrix.arch }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: gta_reversed-${{ matrix.conf }} | |
path: bin/${{ matrix.conf }} | |
- name: Initialize MSVC Code Analysis | |
uses: microsoft/msvc-code-analysis-action@v0.1.1 | |
# Provide a unique ID to access the sarif output path | |
id: run-analysis | |
with: | |
cmakeBuildDirectory: ${{ env.build }} | |
# Ruleset file that will determine what checks will be run | |
ruleset: NativeRecommendedRules.ruleset | |
buildConfiguration: ${{ matrix.conf }} | |
# Exclude external libraries from analysis | |
ignoredPaths: ${{ github.workspace }}/libs | |
# Upload SARIF file to GitHub Code Scanning Alerts | |
- name: Upload SARIF to GitHub | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: ${{ steps.run-analysis.outputs.sarif }} |