dtranslatebot/.github/workflows/windows.yml
Syping de121beaac rename DPPAsExternalProject to DPPStaticBundle
- remove potential DPP AVX dependency
2024-03-11 03:45:48 +01:00

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