mirror of
https://github.com/denglihong2007/CRSim
synced 2026-08-06 17:53:17 +08:00
feat: add github workflow for pr build check
Adds a new GitHub workflow to automatically build the solution on pull requests to the master branch. This ensures that the code in PRs is in a buildable state before merging.
This commit is contained in:
25
.github/workflows/pr-build-check.yml
vendored
Normal file
25
.github/workflows/pr-build-check.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
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: '8.x'
|
||||
|
||||
- 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