Skip to content

Build and analyze on github actions #1

Build and analyze on github actions

Build and analyze on github actions #1

Workflow file for this run

name: Build driver solution
on:
push:
jobs:
build-cbtable-driver:
strategy:
matrix:
configuration: [Debug, Release]
platform: [x64]
runs-on: windows-2022
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build solution
run: |
msbuild cbtable.sln /property:Configuration=${{ env.Configuration }} /property:Platform=${{ env.Platform }}
env:
Configuration: ${{ matrix.configuration }}
Platform: ${{ matrix.platform }}
# Can EV sign (have to replace existing signatures)
# java -jar ~/Downloads/jsign-7.1.jar --replace --storetype PIV --storepass ****** --tsaurl http://ts.ssl.com --tsmode RFC3161 \
# cbtable.sys
# java -jar ~/Downloads/jsign-7.1.jar --replace --storetype PIV --storepass ****** --tsaurl http://ts.ssl.com --tsmode RFC3161 \
# cbtable.cat
- name: Create bundle
shell: pwsh
run: |
$out = "${{ matrix.platform }}\${{ matrix.configuration }}"
Get-ChildItem -Path $out -Recurse -File | Select-Object -ExpandProperty FullName
New-Item -ItemType Directory bundle | Out-Null
# The driver package lands in a subdirectory of the output dir
# ("cbtable Package\") alongside the loose linker output
$pkg = (Get-ChildItem -Path $out -Recurse -Filter cbtable.cat | Select-Object -First 1).DirectoryName
Copy-Item "$pkg\cbtable.cat", "$pkg\cbtable.inf", "$pkg\cbtable.sys" bundle\
$pdb = (Get-ChildItem -Path $out -Recurse -Filter cbtable.pdb | Select-Object -First 1).FullName
Copy-Item $pdb bundle\
- name: Upload bundle
uses: actions/upload-artifact@v4
with:
name: cbtable_${{ matrix.configuration }}
path: bundle