mirror of https://github.com/InoriRus/Kyty.git
Add GitHub Actions (#29)
This commit is contained in:
parent
16baf5cc18
commit
cdc308ba73
|
@ -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
|
Loading…
Reference in New Issue