Skip to content

[CFB::Driver] Fix null input data bug #243

[CFB::Driver] Fix null input data bug

[CFB::Driver] Fix null input data bug #243

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- main
# schedule:
# - cron: 0 0 * * *
workflow_dispatch:
inputs:
tag_name:
description: 'Tag name for release'
required: false
default: nightly
jobs:
build:
name: "${{ matrix.platform }}/${{ matrix.configuration }}"
env:
CMAKE_FLAGS: "-DCFB_BUILD_TOOLS:BOOL=ON -DCFB_BUILD_GUI:BOOL=ON -DCFB_BUILD_TESTS:BOOL=OFF"
CMAKE_TOOLCHAIN_FILE: "C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake"
TAG_NAME: ""
NB_CPU: 1
strategy:
fail-fast: false
matrix:
os: ['windows-latest']
platform: ['x64', 'arm64']
configuration: ['Debug', 'RelWithDebInfo']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- if: github.event_name == 'workflow_dispatch'
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- if: github.event_name == 'schedule'
run: echo "TAG_NAME=nightly" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Setup
shell: pwsh
run: |
echo "NB_CPU=$env:NUMBER_OF_PROCESSORS" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
Import-Module .\.github\Invoke-VisualStudio.ps1
Invoke-VisualStudio2022${{ matrix.platform }}
- name: Build
shell: pwsh
run: |
mkdir build
cmake -S . -B ./build -A ${{ matrix.platform }} ${{ env.CMAKE_FLAGS }}
cmake --build ./build --verbose --parallel ${{ env.NB_CPU }} --config ${{ matrix.configuration }}
- name: Install
shell: pwsh
if: matrix.configuration == 'RelWithDebInfo'
run: |
mkdir artifact
cmake --install ./build --config ${{ matrix.configuration }} --prefix ./artifact --verbose
- name: Upload
uses: actions/upload-artifact@v3
if: matrix.configuration == 'RelWithDebInfo'
with:
name: CFB_${{ matrix.platform }}_${{ matrix.configuration }}_${{ github.head_ref }}_${{ github.sha }}
path: artifact/
retention-days: 1