From 0941789995e05e5f2946a6220e8667e6daaaf729 Mon Sep 17 00:00:00 2001 From: InoUno Date: Tue, 14 Dec 2021 01:36:56 +0100 Subject: [PATCH] Add CI for building and releasing --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..583f6f7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: build + +on: + push: + branches: + - main + tags: + - '*' + pull_request: + types: + - opened + - reopened + - synchronize + +jobs: + windows: + runs-on: windows-2019 + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: 'CMake: Configure' + run: cmake -B build -A Win32 + + - name: 'CMake: Build' + run: cmake --build build --config Release + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: build/xiloader/Release/xiloader.exe