mirror of
https://github.com/Syping/dtranslatebot.git
synced 2026-04-01 05:20:22 +02:00
ported translator to curl, removed EL7 + Windows support
This commit is contained in:
parent
ecece11eac
commit
63399a010d
18 changed files with 250 additions and 101 deletions
2
.github/workflows/linux-rpm.yml
vendored
2
.github/workflows/linux-rpm.yml
vendored
|
|
@ -6,8 +6,6 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- name: Enterprise Linux 7
|
||||
version: el7
|
||||
- name: Enterprise Linux 8
|
||||
version: el8
|
||||
- name: Enterprise Linux 9
|
||||
|
|
|
|||
43
.github/workflows/windows.yml
vendored
43
.github/workflows/windows.yml
vendored
|
|
@ -1,43 +0,0 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue