Add GitHub Actions (#29)

This commit is contained in:
Putta Khunchalee 2022-06-07 15:17:55 +07:00 committed by GitHub
parent 16baf5cc18
commit cdc308ba73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

47
.github/workflows/ci.yml vendored Normal file
View file

@ -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