37 lines
956 B
YAML
37 lines
956 B
YAML
name: Build NfcAime.Dll on Commit
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup NuGet
|
|
uses: NuGet/setup-nuget@v2
|
|
|
|
- name: Setup MSBuild
|
|
uses: microsoft/setup-msbuild@v2
|
|
|
|
- name: Restore NuGet packages (packages.config)
|
|
run: nuget restore .\src\NfcAime.Dll\packages.config -PackagesDirectory .\src\NfcAime.Dll\packages
|
|
|
|
- name: Restore .NET SDK packages
|
|
run: dotnet restore .\src\NfcAime.Cli\Nfcaime.Cli.csproj
|
|
|
|
- name: Build NfcAime (Release)
|
|
run: msbuild .\PN532-Aime-Reader.sln /p:Configuration=Release
|
|
|
|
- name: Upload build artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: NfcAime.Dll-${{ github.sha }}
|
|
path: src/NfcAime.Dll/bin/Release/NfcAime.Dll.dll
|
|
if-no-files-found: error |