mirror of
https://github.com/denglihong2007/CRSim
synced 2026-08-05 00:45:51 +08:00
32 lines
783 B
YAML
32 lines
783 B
YAML
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.slnx
|
|
|
|
- name: Build
|
|
run: dotnet build CRSim.slnx --configuration Release --no-restore
|