From c20a1ee865a6ae4e1e3b6cfd7c6d4b205c1c85bb Mon Sep 17 00:00:00 2001 From: rushiiMachine <33725716+rushiiMachine@users.noreply.github.com> Date: Thu, 21 Mar 2024 10:42:27 -0700 Subject: [PATCH] feat(CI): build workflow --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ global.json | 7 +++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 global.json diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0b6158e --- /dev/null +++ b/.github/workflows/build.yml @@ -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\** diff --git a/global.json b/global.json new file mode 100644 index 0000000..2ddda36 --- /dev/null +++ b/global.json @@ -0,0 +1,7 @@ +{ + "sdk": { + "version": "8.0.0", + "rollForward": "latestMinor", + "allowPrerelease": false + } +} \ No newline at end of file