build_selfhosted #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build_selfhosted | |
on: | |
workflow_dispatch: # This event allows manual triggering | |
jobs: | |
build: | |
runs-on: [self-hosted] # Ensure this matches your self-hosted runner labels | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Clean | |
run: dotnet clean --configuration Release | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Display OS version | |
run: echo "Running on $(uname -a)" # More accurate OS version display |