ci: harden workflow permissions and set explicit x64 target

Agent-Logs-Url: https://github.com/zhicheng233/PN532-Aime-Reader/sessions/73dfcbc2-3d6b-4ca6-8b7e-cfe78c3bd8a0

Co-authored-by: zhicheng233 <71439504+zhicheng233@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-18 16:49:33 +00:00
committed by GitHub
parent fbb5f5d8a9
commit dccc38eb4b
2 changed files with 6 additions and 3 deletions

View File

@@ -5,6 +5,9 @@ on:
tags-ignore: tags-ignore:
- '*' - '*'
permissions:
contents: read
jobs: jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
@@ -23,7 +26,7 @@ jobs:
run: nuget restore .\\PN532-Aime-Reader.sln run: nuget restore .\\PN532-Aime-Reader.sln
- name: Build NfcAime.Dll (x64, no project references) - name: Build NfcAime.Dll (x64, no project references)
run: msbuild .\\src\\NfcAime.Dll\\NfcAime.Dll.csproj /p:Configuration=Release /p:Platform="Any CPU" /p:BuildProjectReferences=false run: msbuild .\\src\\NfcAime.Dll\\NfcAime.Dll.csproj /p:Configuration=Release /p:Platform="Any CPU" /p:PlatformTarget=x64 /p:BuildProjectReferences=false
- name: Upload build artifact - name: Upload build artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4

View File

@@ -28,7 +28,7 @@ jobs:
run: nuget restore .\\PN532-Aime-Reader.sln run: nuget restore .\\PN532-Aime-Reader.sln
- name: Build NfcAime.Dll (x64, no project references) - name: Build NfcAime.Dll (x64, no project references)
run: msbuild .\\src\\NfcAime.Dll\\NfcAime.Dll.csproj /p:Configuration=Release /p:Platform="Any CPU" /p:BuildProjectReferences=false run: msbuild .\\src\\NfcAime.Dll\\NfcAime.Dll.csproj /p:Configuration=Release /p:Platform="Any CPU" /p:PlatformTarget=x64 /p:BuildProjectReferences=false
- name: Generate commit notes since previous tag - name: Generate commit notes since previous tag
shell: pwsh shell: pwsh
@@ -51,7 +51,7 @@ jobs:
@" @"
## Build Artifact ## Build Artifact
- NfcAime.Dll.dll (x64, Release) - NfcAime.Dll.dll (Release, PlatformTarget=x64)
$commitTitle $commitTitle
$commits $commits