From 39e2d11f45ec94b3aba91d7771246d5a6eb645b5 Mon Sep 17 00:00:00 2001 From: Dong Yuwei Date: Thu, 22 Aug 2024 16:21:28 +0800 Subject: [PATCH] setup github actions ci(copied from https://github.com/EasyIME/PIME/blob/master/.github/workflows/ci.yaml) --- .github/workflows/ci.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..1e81dfaa --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,28 @@ +name: Build + +on: + push: + pull_request: + branches: [main] + +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: 'true' + - name: Use Install NSIS + uses: repolevedavaj/install-nsis@v1.0.1 + with: + nsis-version: 3.08 + - name: Run build.bat + run: | + .\build.bat + - name: Build the installer + run: | + cmd /C "C:\Program Files (x86)\NSIS\Bin\makensis.exe" ".\installer\installer.nsi" + - uses: actions/upload-artifact@v4 + with: + name: Installer + path: installer/*.exe \ No newline at end of file