diff --git a/.github/workflows/build-on-commit.yml b/.github/workflows/build-on-commit.yml new file mode 100644 index 0000000..1fe09ef --- /dev/null +++ b/.github/workflows/build-on-commit.yml @@ -0,0 +1,34 @@ +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 + run: msbuild .\PN532-Aime-Reader.sln /t:Restore /p:Configuration=Release + + - name: Build NfcAime (Release) + run: msbuild .\PN532-Aime-Reader\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 \ No newline at end of file diff --git a/src/NfcAime.Dll/NfcAime.Dll.csproj b/src/NfcAime.Dll/NfcAime.Dll.csproj index 8f53316..f546ce4 100644 --- a/src/NfcAime.Dll/NfcAime.Dll.csproj +++ b/src/NfcAime.Dll/NfcAime.Dll.csproj @@ -11,6 +11,7 @@ NfcAime.Dll NfcAime.Dll v4.7.2 + win-x64 v4.5 512 13