add ci and simplify executable description

This commit is contained in:
Syping 2024-03-08 01:25:50 +01:00
parent 616ce0055b
commit 0dbf987ff2
2 changed files with 37 additions and 1 deletions

36
.github/workflows/windows.yml vendored Normal file
View file

@ -0,0 +1,36 @@
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 ./build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_EXE_LINKER_FLAGS="-static -lc++" -DWITH_DPP_AS_EXTERNAL_PROJECT=TRUE -GNinja
- name: Build
run: cmake --build ./build --config ${{env.BUILD_TYPE}}
- name: Install
run: cmake --install ./build --config ${{env.BUILD_TYPE}} --prefix ./install --strip
- name: Upload
uses: actions/upload-artifact@v4
with:
name: Windows
path: |
./install/bin/

View file

@ -17,7 +17,7 @@ BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", "Syping"
VALUE "FileDescription", "Open Source Discord Translation Bot"
VALUE "FileDescription", "Discord Translation Bot"
VALUE "FileVersion", "@dtranslatebot_VERSION@"
VALUE "InternalName", "dtranslatebot"
VALUE "LegalCopyright", "Copyright © 2023-2024 Syping"