From 68dbf185631523af9d9a790bba9ad9c67a17526e Mon Sep 17 00:00:00 2001 From: zhicheng233 Date: Tue, 19 May 2026 02:22:36 +0800 Subject: [PATCH] =?UTF-8?q?ci:Github=20Actions=20=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-on-commit.yml | 34 +++++++++++++++++++++++++++ src/NfcAime.Dll/NfcAime.Dll.csproj | 1 + 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/build-on-commit.yml diff --git a/.github/workflows/build-on-commit.yml b/.github/workflows/build-on-commit.yml new file mode 100644 index 0000000..9d41382 --- /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.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