Skip to content

add clang-tidy

add clang-tidy #98

Workflow file for this run

name: Windows
on:
workflow_call:
inputs:
upload_url:
required: false
type: string
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Install tools
run: |
choco install cmake
choco install ninja
choco install llvm
- name: Configure and build
run: |
cmake --preset win64-release
cmake --build build
- name: Upload binary to release (optional)
if: ${{ inputs.upload_url }}
id: upload-release-binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ inputs.upload_url }}
asset_path: build/udp-relay.exe
asset_name: udp-relay-win64.exe
asset_content_type: application/executable