mirror of
https://github.com/Syping/dtranslatebot.git
synced 2024-11-22 13:50:22 +01:00
add ci and simplify executable description
This commit is contained in:
parent
616ce0055b
commit
0dbf987ff2
2 changed files with 37 additions and 1 deletions
36
.github/workflows/windows.yml
vendored
Normal file
36
.github/workflows/windows.yml
vendored
Normal 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/
|
|
@ -17,7 +17,7 @@ BEGIN
|
||||||
BLOCK "040904b0"
|
BLOCK "040904b0"
|
||||||
BEGIN
|
BEGIN
|
||||||
VALUE "CompanyName", "Syping"
|
VALUE "CompanyName", "Syping"
|
||||||
VALUE "FileDescription", "Open Source Discord Translation Bot"
|
VALUE "FileDescription", "Discord Translation Bot"
|
||||||
VALUE "FileVersion", "@dtranslatebot_VERSION@"
|
VALUE "FileVersion", "@dtranslatebot_VERSION@"
|
||||||
VALUE "InternalName", "dtranslatebot"
|
VALUE "InternalName", "dtranslatebot"
|
||||||
VALUE "LegalCopyright", "Copyright © 2023-2024 Syping"
|
VALUE "LegalCopyright", "Copyright © 2023-2024 Syping"
|
||||||
|
|
Loading…
Reference in a new issue