Skip to content

Commit

Permalink
feat(CI): build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rushiiMachine committed Mar 21, 2024
1 parent beaaac0 commit c20a1ee
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build

on:
push:
branches-ignore: [ "release" ]
paths-ignore: [ "**.md" ]
pull_request:
paths-ignore: [ "**.md" ]
workflow_dispatch:

jobs:
build:
runs-on: windows-latest
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x.x

- name: Setup .NET Framework
uses: microsoft/setup-msbuild@v2

- name: Build
run: dotnet build Osu.Patcher.Injector

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: osu!patcher-debug
if-no-files-found: error
path: .\Osu.Patcher.Injector\bin\Debug\net6.0\**
7 changes: 7 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"sdk": {
"version": "8.0.0",
"rollForward": "latestMinor",
"allowPrerelease": false
}
}

0 comments on commit c20a1ee

Please sign in to comment.