Skip to content

Commit

Permalink
Update msvc-scan.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mywave82 committed Jul 12, 2024
1 parent eacdab1 commit c9294f6
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/msvc-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: MSVC Scan
# We only want to test official release code, not every pull request.
on:
push:
branches: [cmake_build]
branches: [master]

env:
libbinio_PRESET: default
libbinio_ROOT: '${{ github.workspace }}/libbinio/out/install/default/lib/cmake/libbinio/'
libbinio_ROOT: '${{github.workspace}}/libbinio/out/install/default/lib/cmake/libbinio/'

jobs:
analyze:
Expand All @@ -24,28 +24,29 @@ jobs:
- name: Find MSVC (on Windows)
uses: ilammy/msvc-dev-cmd@v1

- name: Checkout adplug repository
- name: Checkout libbinio repository
uses: actions/checkout@v3
with:
repository: '${{env.LIBBINIO_REPOSITORY}}'
ref: master
path: libbinio
fetch-depth: 0

- name: Checkout libbinio repository
- name: Checkout adplug repository
uses: actions/checkout@v3
with:
repository: '${{ env.LIBBINIO_REPOSITORY }}'
ref: cmake_build
path: libbinio
path: adplug
fetch-depth: 0

- name: Build libbinio
uses: lukka/run-cmake@v10
with:
cmakeListsTxtPath: libbinio/CMakeLists.txt
configurePreset: '${{ env.libbinio_PRESET }}'
buildPreset: '${{ env.libbinio_PRESET }}'
configurePreset: '${{env.libbinio_PRESET}}'
buildPreset: '${{env.libbinio_PRESET}}'

- name: Install libbinio
working-directory: 'libbinio/out/build/${{ env.libbinio_PRESET }}/'
working-directory: 'libbinio/out/build/${{env.libbinio_PRESET}}/'
run: cmake --install .

- name: Configure adplug
Expand All @@ -66,4 +67,4 @@ jobs:
- name: Upload SARIF to GitHub
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.run-analysis.outputs.sarif }}
sarif_file: ${{steps.run-analysis.outputs.sarif}}

0 comments on commit c9294f6

Please sign in to comment.