mirror of
https://github.com/denglihong2007/CRSim
synced 2026-08-07 10:05:49 +08:00
Merge pull request #294 from denglihong2007/add-pr-build-check-workflow-6303288313717636463
Add GitHub Workflow for PR Build Check
This commit is contained in:
31
.github/workflows/pr-build-check.yml
vendored
Normal file
31
.github/workflows/pr-build-check.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user