mirror of
https://github.com/Syping/dtranslatebot.git
synced 2024-12-21 11:25:31 +01:00
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
name: Windows
|
|
on: push
|
|
jobs:
|
|
Release:
|
|
runs-on: windows-latest
|
|
env:
|
|
BUILD_TYPE: Release
|
|
defaults:
|
|
run:
|
|
shell: msys2 {0}
|
|
steps:
|
|
- name: Setup MSYS2
|
|
uses: msys2/setup-msys2@v2
|
|
with:
|
|
msystem: clang64
|
|
update: true
|
|
install: >-
|
|
git
|
|
make
|
|
mingw-w64-clang-x86_64-clang
|
|
mingw-w64-clang-x86_64-cmake
|
|
mingw-w64-clang-x86_64-ninja
|
|
perl
|
|
- name: Cloning
|
|
uses: actions/checkout@v4
|
|
- name: Configure CMake
|
|
run: cmake -B dtranslatebot-build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_EXE_LINKER_FLAGS="-static -lc++" -DWITH_DPP_STATIC_BUNDLE=TRUE -GNinja
|
|
- name: Download and build OpenSSL
|
|
run: cmake --build dtranslatebot-build --config ${{env.BUILD_TYPE}} --target OpenSSL
|
|
- name: Download and build zlib
|
|
run: cmake --build dtranslatebot-build --config ${{env.BUILD_TYPE}} --target ZLIB
|
|
- name: Download and build DPP
|
|
run: cmake --build dtranslatebot-build --config ${{env.BUILD_TYPE}} --target DPP
|
|
- name: Build dtranslatebot
|
|
run: cmake --build dtranslatebot-build --config ${{env.BUILD_TYPE}}
|
|
- name: Install
|
|
run: cmake --install dtranslatebot-build --config ${{env.BUILD_TYPE}} --prefix dtranslatebot-install --strip
|
|
- name: Upload
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Windows
|
|
path: |
|
|
dtranslatebot-install/bin/dtranslatebot.exe
|