235 lines
7.8 KiB
YAML
235 lines
7.8 KiB
YAML
name: 'continuous-integration'
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ['master']
|
|
pull_request:
|
|
branches: ['master']
|
|
|
|
jobs:
|
|
build:
|
|
permissions:
|
|
contents: read
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: ['windows-2025-vs2026']
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 7.0.1
|
|
|
|
- name: NuGet Cache
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # 6.1.0
|
|
with:
|
|
path: |
|
|
packages
|
|
~\.nuget\packages
|
|
key: nuget-${{ runner.os }}-${{ hashFiles('**/packages.config', '**/*.csproj', '**/Directory.Packages.props', '**/packages.lock.json', '**/NuGet.Config', '**/global.json') }}
|
|
restore-keys: nuget-${{ runner.os }}-
|
|
|
|
- name: Nuget Restore
|
|
shell: cmd
|
|
working-directory: ${{github.workspace}}
|
|
run: nuget restore .\packages.config -PackagesDirectory .\packages\
|
|
|
|
- name: BuildTools Cache
|
|
id: custombuildtool-cache
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # 6.1.0
|
|
with:
|
|
path: tools/CustomBuildTool/bin/Release/**
|
|
key: custombuildtool-${{ runner.os }}-${{ hashFiles('tools/CustomBuildTool/**', '!tools/CustomBuildTool/bin/**') }}
|
|
restore-keys: custombuildtool-${{ runner.os }}-
|
|
|
|
- name: BuildThirdParty Cache
|
|
id: thirdparty-cache
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # 6.1.0
|
|
with:
|
|
path: tools/thirdparty/**
|
|
key: thirdparty-${{ runner.os }}-${{ hashFiles('tools/thirdparty/**', '!tools/thirdparty/bin/**') }}
|
|
|
|
- name: Build Tools
|
|
if: steps.custombuildtool-cache.outputs.cache-hit != 'true' || steps.thirdparty-cache.outputs.cache-hit != 'true'
|
|
shell: cmd
|
|
working-directory: ${{github.workspace}}
|
|
run: build\build_init.cmd
|
|
|
|
- name: Github Annotations
|
|
shell: cmd
|
|
run: echo ::add-matcher::.github/msvc-matcher.json
|
|
|
|
- name: Build Solution
|
|
shell: cmd
|
|
working-directory: ${{github.workspace}}
|
|
run: build\build_debug.cmd
|
|
|
|
build-release:
|
|
permissions:
|
|
contents: read
|
|
strategy:
|
|
matrix:
|
|
os: ['windows-2025-vs2026']
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 7.0.1
|
|
|
|
- name: NuGet Cache
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # 6.1.0
|
|
with:
|
|
path: |
|
|
packages
|
|
~\.nuget\packages
|
|
key: nuget-${{ runner.os }}-${{ hashFiles('**/packages.config', '**/*.csproj', '**/Directory.Packages.props', '**/packages.lock.json', '**/NuGet.Config', '**/global.json') }}
|
|
restore-keys: nuget-${{ runner.os }}-
|
|
|
|
- name: Nuget Restore
|
|
shell: cmd
|
|
working-directory: ${{github.workspace}}
|
|
run: nuget restore .\packages.config -PackagesDirectory .\packages\
|
|
|
|
- name: BuildTools Cache
|
|
id: custombuildtool-cache
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # 6.1.0
|
|
with:
|
|
path: tools/CustomBuildTool/bin/Release/**
|
|
key: custombuildtool-${{ runner.os }}-${{ hashFiles('tools/CustomBuildTool/**', '!tools/CustomBuildTool/bin/**') }}
|
|
restore-keys: custombuildtool-${{ runner.os }}-
|
|
|
|
- name: BuildThirdParty Cache
|
|
id: thirdparty-cache
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # 6.1.0
|
|
with:
|
|
path: tools/thirdparty/**
|
|
key: thirdparty-${{ runner.os }}-${{ hashFiles('tools/thirdparty/**', '!tools/thirdparty/bin/**') }}
|
|
|
|
- name: Build Tools
|
|
if: steps.custombuildtool-cache.outputs.cache-hit != 'true' || steps.thirdparty-cache.outputs.cache-hit != 'true'
|
|
shell: cmd
|
|
working-directory: ${{github.workspace}}
|
|
run: build\build_init.cmd
|
|
|
|
- name: Reflow Exports
|
|
shell: cmd
|
|
working-directory: ${{github.workspace}}
|
|
run: build\build_exports.cmd reflow
|
|
|
|
- name: Github Annotations
|
|
shell: cmd
|
|
run: echo ::add-matcher::.github/msvc-matcher.json
|
|
|
|
- name: Build Solution
|
|
shell: cmd
|
|
working-directory: ${{github.workspace}}
|
|
run: build\build_release.cmd
|
|
|
|
- name: Check Exports
|
|
shell: cmd
|
|
working-directory: ${{github.workspace}}
|
|
run: build\build_exports.cmd validate
|
|
|
|
- name: Upload Build Zips
|
|
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # 7.0.2
|
|
with:
|
|
name: systeminformer-build-${{ github.sha }}
|
|
path: build/output/*.zip
|
|
if-no-files-found: error
|
|
retention-days: 7
|
|
|
|
build-driver:
|
|
permissions:
|
|
contents: read
|
|
strategy:
|
|
matrix:
|
|
os: ['windows-2025-vs2026']
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 7.0.1
|
|
|
|
- name: NuGet Cache
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # 6.1.0
|
|
with:
|
|
path: |
|
|
packages
|
|
~\.nuget\packages
|
|
key: nuget-${{ runner.os }}-${{ hashFiles('**/packages.config', '**/*.csproj', '**/Directory.Packages.props', '**/packages.lock.json', '**/NuGet.Config', '**/global.json') }}
|
|
restore-keys: nuget-${{ runner.os }}-
|
|
|
|
- name: Nuget Restore
|
|
shell: cmd
|
|
working-directory: ${{github.workspace}}
|
|
run: nuget restore .\packages.config -PackagesDirectory .\packages\
|
|
|
|
- name: BuildTools Cache
|
|
id: custombuildtool-cache
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # 6.1.0
|
|
with:
|
|
path: tools/CustomBuildTool/bin/Release/**
|
|
key: custombuildtool-${{ runner.os }}-${{ hashFiles('tools/CustomBuildTool/**', '!tools/CustomBuildTool/bin/**') }}
|
|
restore-keys: custombuildtool-${{ runner.os }}-
|
|
|
|
- name: Build Tools
|
|
if: steps.custombuildtool-cache.outputs.cache-hit != 'true'
|
|
shell: cmd
|
|
working-directory: ${{github.workspace}}
|
|
run: build\build_tools.cmd
|
|
|
|
- name: Github Annotations
|
|
shell: cmd
|
|
run: echo ::add-matcher::.github/msvc-matcher.json
|
|
|
|
- name: Build Driver
|
|
shell: cmd
|
|
working-directory: ${{github.workspace}}
|
|
run: build\build_zdriver.cmd prefast
|
|
|
|
build-driver-release:
|
|
permissions:
|
|
contents: read
|
|
strategy:
|
|
matrix:
|
|
os: ['windows-2025-vs2026']
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 7.0.1
|
|
|
|
- name: NuGet Cache
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # 6.1.0
|
|
with:
|
|
path: |
|
|
packages
|
|
~\.nuget\packages
|
|
key: nuget-${{ runner.os }}-${{ hashFiles('**/packages.config', '**/*.csproj', '**/Directory.Packages.props', '**/packages.lock.json', '**/NuGet.Config', '**/global.json') }}
|
|
restore-keys: nuget-${{ runner.os }}-
|
|
|
|
- name: Nuget Restore
|
|
shell: cmd
|
|
working-directory: ${{github.workspace}}
|
|
run: nuget restore .\packages.config -PackagesDirectory .\packages\
|
|
|
|
- name: BuildTools Cache
|
|
id: custombuildtool-cache
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # 6.1.0
|
|
with:
|
|
path: tools/CustomBuildTool/bin/Release/**
|
|
key: custombuildtool-${{ runner.os }}-${{ hashFiles('tools/CustomBuildTool/**', '!tools/CustomBuildTool/bin/**') }}
|
|
restore-keys: custombuildtool-${{ runner.os }}-
|
|
|
|
- name: Build Tools
|
|
if: steps.custombuildtool-cache.outputs.cache-hit != 'true'
|
|
shell: cmd
|
|
working-directory: ${{github.workspace}}
|
|
run: build\build_tools.cmd
|
|
|
|
- name: Github Annotations
|
|
shell: cmd
|
|
run: echo ::add-matcher::.github/msvc-matcher.json
|
|
|
|
- name: Build Driver
|
|
shell: cmd
|
|
working-directory: ${{github.workspace}}
|
|
run: build\build_zdriver.cmd release
|