2024-03-08 01:25:50 +01:00
|
|
|
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
|
2024-03-11 03:45:48 +01:00
|
|
|
run: cmake -B dtranslatebot-build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_EXE_LINKER_FLAGS="-static -lc++" -DWITH_DPP_STATIC_BUNDLE=TRUE -GNinja
|
2024-03-11 03:24:01 +01:00
|
|
|
- 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}}
|
2024-03-08 01:25:50 +01:00
|
|
|
- name: Install
|
2024-03-11 03:24:01 +01:00
|
|
|
run: cmake --install dtranslatebot-build --config ${{env.BUILD_TYPE}} --prefix dtranslatebot-install --strip
|
2024-03-08 01:25:50 +01:00
|
|
|
- name: Upload
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: Windows
|
|
|
|
path: |
|
2024-03-11 03:24:01 +01:00
|
|
|
dtranslatebot-install/bin/dtranslatebot.exe
|