Skip to content

DRYs up usb enumeration code #6

DRYs up usb enumeration code

DRYs up usb enumeration code #6

Workflow file for this run

name: windows
on:
push:
pull_request:
branches:
- 'v*'
- main
- test-pipeline
tags:
- "v*.*.*"
workflow_dispatch:
env:
# Path to the CMake build directory.
build: '${{ github.workspace }}/builds/release-config'
config: 'release-config'
jobs:
build:
name: ${{ matrix.os }}-${{ github.workflow }}
runs-on: ${{ matrix.os }}
strategy:
# fail-fast: false
matrix:
os: [windows-latest]
# os: [ubuntu-latest, macos-latest, windows-latest]
#env:
#
# [OPTIONAL] Define the vcpkg's triplet
# you want to enforce, otherwise the default one
# for the hosting system will be automatically
# choosen (x64 is the default on all platforms,
# e.g. x64-osx).
# VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
steps:
################
# Build - Test #
################
- uses: actions/checkout@v4
with:
submodules: true
- uses: lukka/get-cmake@latest
- name: Restore from cache and setup vcpkg executable and data files.
uses: lukka/run-vcpkg@v11
with:
vcpkgJsonGlob: 'vcpkg.json'
- name: Run CMake+vcpkg+Ninja+CTest to build packages and generate/build/test the code.
uses: lukka/run-cmake@v10
with:
configurePreset: 'release-config'
buildPreset: 'release-build'
testPreset: 'test-release'
########
# Lint #
########
# TODO: pick a linter. msvc-code-analysis-action is not maintained
####################
# Release Binaries #
####################
- run: ls builds/release-config/Release/
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: |
builds/release-config/Release/main.exe
builds/release-config/Release/blink.dll