From cdc308ba73283bef979a13f9ccd166bef34493f0 Mon Sep 17 00:00:00 2001 From: Putta Khunchalee Date: Tue, 7 Jun 2022 15:17:55 +0700 Subject: [PATCH] Add GitHub Actions (#29) --- .github/workflows/ci.yml | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..435ac64 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,47 @@ +name: CI +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' +concurrency: ci-${{ github.ref }} +jobs: + build: + name: Build + runs-on: windows-2022 + steps: + - name: Checkout source + uses: actions/checkout@v3 + with: + lfs: true + - name: Install WinLibs + run: choco install winlibs -y --no-progress + - name: Install Qt + uses: jurplel/install-qt-action@v2 + with: + arch: win64_mingw81 + - name: Run CMake + run: | + set PATH=C:\ProgramData\chocolatey\lib\winlibs\tools\mingw64\bin;%PATH% + cmake_EclipseMinGW.bat 4 _Gcc + working-directory: _Build + shell: cmd + - name: Build + run: _build.bat + working-directory: _Build/_Gcc + shell: cmd + - name: Copy Qt dependency DLLs + run: | + $src = Resolve-Path "${env:Qt5_DIR}\bin" + $dest = "_Build\_Gcc\_bin" + + Copy-Item "${src}\libwinpthread-1.dll" -Destination $dest + Copy-Item "${src}\libstdc++-6.dll" -Destination $dest + Copy-Item "${src}\libgcc_s_seh-1.dll" -Destination $dest + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: Kyty + path: _Build/_Gcc/_bin