Add Forgejo CI workflows
This commit is contained in:
parent
fb0dcccaf4
commit
3f10f4a1f6
3 changed files with 73 additions and 0 deletions
35
.forgejo/workflows/build.yml
Normal file
35
.forgejo/workflows/build.yml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: src
|
||||
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: 8.0.x
|
||||
|
||||
- name: Restore local tools
|
||||
run: dotnet tool restore
|
||||
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore CsMic.sln
|
||||
|
||||
- name: Build
|
||||
run: dotnet build CsMic.sln --no-restore
|
||||
Loading…
Add table
Add a link
Reference in a new issue