Merge pull request #294 from denglihong2007/add-pr-build-check-workflow-6303288313717636463

Add GitHub Workflow for PR Build Check
This commit is contained in:
denglihong2007
2025-12-14 11:55:56 +08:00
committed by GitHub

31
.github/workflows/pr-build-check.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: PR Build Check
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '10.x'
- name: Add GitHub Package Source
env:
GHPKG_KEY: ${{ secrets.GHPKG_KEY }}
run: |
dotnet nuget add source --username denglihong2007 --password $env:GHPKG_KEY --store-password-in-clear-text --name github "https://nuget.pkg.github.com/denglihong2007/index.json"
- name: Restore dependencies
run: dotnet restore CRSim.sln
- name: Build
run: dotnet build CRSim.sln --configuration Release --no-restore