mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
github:add 6.2 support
add macos windows, linux support
This commit is contained in:
parent
b7a3c12382
commit
c6cb59af3f
2
.github/scripts/windows-publish.ps1
vendored
2
.github/scripts/windows-publish.ps1
vendored
|
@ -54,7 +54,7 @@ function Main() {
|
|||
Copy-Item locale\*.qm $archiveName\locale\
|
||||
Write-Host "copy qwebengine zh_CN translation"
|
||||
Copy-Item thirdparty\qwebengine_ts\*.qm $archiveName\locale\
|
||||
$webengineqm="{0}\translations\qtwebengine_*.qm" -f $env:Qt5_Dir
|
||||
$webengineqm="{0}\translations\qtwebengine_*.qm" -f $env:QTDIR.Trim()
|
||||
Write-Host "copy qtwebengine qm from $($webengineqm)"
|
||||
Copy-Item $webengineqm $archiveName\locale\
|
||||
Write-Host "compress zip..."
|
||||
|
|
70
.github/workflows/AutoTag.yml
vendored
Normal file
70
.github/workflows/AutoTag.yml
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
name: AutoTag
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
- master
|
||||
# - staged
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- ".github/**"
|
||||
- "howto/**"
|
||||
- "*.md"
|
||||
- ".clang-format"
|
||||
pull_request:
|
||||
branches:
|
||||
- dev
|
||||
- master
|
||||
# - staged
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- ".github/**"
|
||||
- "howto/**"
|
||||
- "*.md"
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
# 运行平台, windows-latest目前是windows server 2019
|
||||
# 参考文档 https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md
|
||||
runs-on: windows-2019
|
||||
strategy:
|
||||
# 矩阵配置
|
||||
matrix:
|
||||
# qt_ver: [5.15.2,6.2.2]
|
||||
include:
|
||||
# 5.15.2 参考 https://mirrors.cloud.tencent.com/qt/online/qtsdkrepository/windows_x86/desktop/qt5_5152/
|
||||
- qt_ver: 5.15.2
|
||||
qt_arch: win64_msvc2019_64
|
||||
msvc_arch: x64
|
||||
qt_target: x64
|
||||
qt_arch_install: msvc2019_64
|
||||
# - qt_ver: 6.2.3
|
||||
# qt_arch: win64_msvc2019_64
|
||||
# msvc_arch: x64
|
||||
# qt_target: x64
|
||||
# qt_arch_install: msvc2019_64
|
||||
env:
|
||||
targetName: GoldenDict.exe
|
||||
version: 22.2.alpha
|
||||
# 步骤
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Set outputs
|
||||
id: githash
|
||||
run: |
|
||||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||
- uses: Klemensas/action-autotag@stable
|
||||
id: autotag
|
||||
with:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
tag_prefix: "v"
|
||||
tag_suffix: "-${{ steps.githash.outputs.sha_short }}"
|
||||
|
||||
|
112
.github/workflows/macos-6.2.yml
vendored
Normal file
112
.github/workflows/macos-6.2.yml
vendored
Normal file
|
@ -0,0 +1,112 @@
|
|||
name: macos-6.2
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [AutoTag]
|
||||
types: [completed]
|
||||
workflow_dispatch:
|
||||
# push:
|
||||
# branches:
|
||||
# - dev
|
||||
# - master
|
||||
# # - staged
|
||||
# paths-ignore:
|
||||
# - 'docs/**'
|
||||
# - ".github/**"
|
||||
# - "howto/**"
|
||||
# - "*.md"
|
||||
# - ".clang-format"
|
||||
# pull_request:
|
||||
# branches:
|
||||
# - dev
|
||||
# - master
|
||||
# # - staged
|
||||
# paths-ignore:
|
||||
# - 'docs/**'
|
||||
# - ".github/**"
|
||||
# - "howto/**"
|
||||
# - "*.md"
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-11]
|
||||
qt_ver: [6.2.3]
|
||||
qt_arch: [clang_64]
|
||||
env:
|
||||
targetName: GoldenDict
|
||||
version: 22.2.alpha
|
||||
|
||||
steps:
|
||||
# macos 11.0 默认环境变了,要指定
|
||||
- name: prepare env
|
||||
if: ${{ matrix.os == 'macos-11' }}
|
||||
run: |
|
||||
softwareupdate --all --install --force
|
||||
sudo xcode-select --print-path
|
||||
sudo xcode-select --switch /Library/Developer/CommandLineTools
|
||||
- name: Install Qt
|
||||
run: |
|
||||
brew update
|
||||
brew install qt@6 #qt6.2.3
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Set outputs
|
||||
id: githash
|
||||
run: |
|
||||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||
|
||||
- name: build macos
|
||||
run: |
|
||||
qmake CONFIG+=release CONFIG+=zim_support CONFIG+=chinese_conversion_support
|
||||
make
|
||||
# 打包
|
||||
- name: package
|
||||
run: |
|
||||
# 拷贝依赖
|
||||
macdeployqt ${targetName}.app -qmldir=. -verbose=1 -dmg
|
||||
- name: Set outputs
|
||||
id: vars
|
||||
run: |
|
||||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||
echo "::set-output name=release_date::$(date +'%Y%m%d')"
|
||||
echo "::set-output name=release_time::$(date +'%H%M%S')"
|
||||
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
|
||||
|
||||
previousTag=$(git tag --sort=-creatordate | sed -n 2p)
|
||||
echo "previousTag : $previousTag"
|
||||
|
||||
commitSummary="$(git shortlog $previousTag..HEAD)"
|
||||
echo "::set-output name=COMMIT_SUMMARY::\"$commitSummary\""
|
||||
# tag 上传Release
|
||||
- name: uploadRelease
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: ${{ env.targetName }}.dmg
|
||||
asset_name: ${{ matrix.qt_ver }}-${{ env.targetName }}_${{ matrix.os }}_${{ steps.vars.outputs.sha_short }}.dmg
|
||||
tag: v${{ steps.autotag.outputs.version }}-${{ steps.vars.outputs.sha_short }}
|
||||
overwrite: true
|
||||
release_name: win-ubuntu-macos-${{ github.ref_name }}-${{steps.vars.outputs.release_date}}
|
||||
prerelease: true
|
||||
body: |
|
||||
release on date: ${{steps.vars.outputs.release_date}} time: ${{steps.vars.outputs.release_time_clock}}
|
||||
branch: ${{ github.ref_name }}
|
||||
commit: ${{ steps.vars.outputs.sha_short }}
|
||||
Qt version: ${{ matrix.qt_ver }} ${{ matrix.qt_arch }}
|
||||
Windows built with: msvc64 Visual studio 2019
|
||||
# goldendict.exe can not used alone
|
||||
if you have a previous version. replace this maybe ok. if not ,download the whole bundle.
|
||||
|
||||
AppImage built with: Ubuntu-20.04 ,latest gcc
|
||||
macos built with: macos-10.15,macos-11.0,clang_64
|
||||
This is a prerelease version ,auto build by github action. use on your on risk:-)
|
||||
|
||||
CHANGES:
|
||||
${{ steps.vars.outputs.COMMIT_SUMMARY }}
|
9
.github/workflows/macos.yml
vendored
9
.github/workflows/macos.yml
vendored
|
@ -36,6 +36,8 @@ jobs:
|
|||
qt_arch: [clang_64]
|
||||
env:
|
||||
targetName: GoldenDict
|
||||
version: 22.2.alpha
|
||||
|
||||
steps:
|
||||
# macos 11.0 默认环境变了,要指定
|
||||
- name: prepare env
|
||||
|
@ -43,9 +45,11 @@ jobs:
|
|||
run: |
|
||||
softwareupdate --all --install --force
|
||||
sudo xcode-select --print-path
|
||||
sudo xcode-select --switch /Library/Developer/CommandLineTools
|
||||
sudo xcode-select --switch /Library/Developer/CommandLineTools
|
||||
# brew install qt@6
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v2
|
||||
# if: ${{ matrix.qt_ver == '5.15.2' }}
|
||||
with:
|
||||
version: ${{ matrix.qt_ver }}
|
||||
cached: 'false'
|
||||
|
@ -62,7 +66,8 @@ jobs:
|
|||
with:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
tag_prefix: "v"
|
||||
tag_suffix: "-${{ steps.githash.outputs.sha_short }}"
|
||||
tag_suffix: "-${{ steps.githash.outputs.sha_short }}"
|
||||
|
||||
- name: build macos
|
||||
run: |
|
||||
brew install opencc
|
||||
|
|
136
.github/workflows/ubuntu-6.2.yml
vendored
Normal file
136
.github/workflows/ubuntu-6.2.yml
vendored
Normal file
|
@ -0,0 +1,136 @@
|
|||
name: Ubuntu-6.2
|
||||
# Qt官方没有linux平台的x86包
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [AutoTag]
|
||||
types: [completed]
|
||||
workflow_dispatch:
|
||||
# push:
|
||||
# branches:
|
||||
# - dev
|
||||
# - master
|
||||
# # - staged
|
||||
# paths-ignore:
|
||||
# - 'docs/**'
|
||||
# - ".github/**"
|
||||
# - "howto/**"
|
||||
# - "*.md"
|
||||
# - ".clang-format"
|
||||
# pull_request:
|
||||
# branches:
|
||||
# - dev
|
||||
# - master
|
||||
# # - staged
|
||||
# paths-ignore:
|
||||
# - 'docs/**'
|
||||
# - ".github/**"
|
||||
# - "howto/**"
|
||||
# - "*.md"
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
qt_ver: [6.2.3]
|
||||
qt_arch: [gcc_64]
|
||||
env:
|
||||
version: 22.2.alpha
|
||||
steps:
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v3
|
||||
with:
|
||||
version: ${{ matrix.qt_ver }}
|
||||
arch: ${{ matrix.qt_arch }}
|
||||
cached: 'false'
|
||||
modules: qtwebengine qtwebchannel qtpositioning qt5compat qtmultimedia
|
||||
- name: ubuntu install thirdparty dependencies
|
||||
run: |
|
||||
sudo apt-get install git pkg-config build-essential
|
||||
sudo apt-get install libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev
|
||||
sudo apt-get install libxtst-dev liblzo2-dev libbz2-dev
|
||||
sudo apt-get install libao-dev libavutil-dev libavformat-dev libtiff5-dev libeb16-dev
|
||||
sudo apt-get install doxygen libzstd-dev libxkbcommon-dev libgstreamer-plugins-base1.0-0 libgstreamer-gl1.0-0
|
||||
sudo ln -sf /usr/bin/x86_64-linux-gnu-ld.gold /usr/bin/ld
|
||||
|
||||
#build opencc
|
||||
git clone https://github.com/BYVoid/OpenCC
|
||||
cd OpenCC/
|
||||
make PREFIX=/usr -j$(nproc)
|
||||
sudo make install
|
||||
cd ..
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set outputs
|
||||
id: githash
|
||||
run: |
|
||||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||
# - uses: Klemensas/action-autotag@stable
|
||||
# id: autotag
|
||||
# with:
|
||||
# GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
# tag_prefix: "v"
|
||||
# tag_suffix: "-${{ steps.githash.outputs.sha_short }}"
|
||||
|
||||
- name: build goldendict
|
||||
run: |
|
||||
qmake CONFIG+=release PREFIX=/usr CONFIG+=zim_support CONFIG+=chinese_conversion_support
|
||||
make INSTALL_ROOT=appdir -j`nproc` install; find appdir/
|
||||
ls -al
|
||||
- name: Build AppImage
|
||||
run: |
|
||||
wget -c -nv "https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage"
|
||||
chmod a+x linuxdeploy-plugin-qt-x86_64.AppImage
|
||||
wget -c -nv "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage"
|
||||
chmod a+x linuxdeploy-x86_64.AppImage
|
||||
./linuxdeploy-x86_64.AppImage --appdir appdir --output appimage --plugin qt -i redist/icons/goldendict.png -d redist/org.goldendict.GoldenDict.desktop
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: AppImage
|
||||
path: './*.AppImage*'
|
||||
- name: Set outputs
|
||||
id: vars
|
||||
run: |
|
||||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||
echo "::set-output name=release_date::$(date +'%Y%m%d')"
|
||||
echo "::set-output name=release_time::$(date +'%H%M%S')"
|
||||
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
|
||||
echo "::set-output name=appname::$(ls *.AppImage*)"
|
||||
|
||||
previousTag=$(git tag --sort=-creatordate | sed -n 2p)
|
||||
echo "previousTag : $previousTag"
|
||||
|
||||
commitSummary="$(git shortlog $previousTag..HEAD)"
|
||||
echo "::set-output name=COMMIT_SUMMARY::\"$commitSummary\""
|
||||
- name: uploadRelease
|
||||
# if: startsWith(github.event.ref, 'refs/tags/')
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: ${{ steps.vars.outputs.appname }}
|
||||
asset_name: ${{ matrix.qt_ver }}-${{ steps.vars.outputs.appname }}
|
||||
tag: v${{ steps.autotag.outputs.version }}-${{ steps.vars.outputs.sha_short }}
|
||||
overwrite: true
|
||||
release_name: win-ubuntu-macos-${{ github.ref_name }}-${{steps.vars.outputs.release_date}}
|
||||
prerelease: true
|
||||
body: |
|
||||
release on date: ${{steps.vars.outputs.release_date}} time: ${{steps.vars.outputs.release_time_clock}}
|
||||
branch: ${{ github.ref_name }}
|
||||
commit: ${{ steps.vars.outputs.sha_short }}
|
||||
Qt version: ${{ matrix.qt_ver }} ${{ matrix.qt_arch }}
|
||||
Windows built with: msvc64 Visual studio 2019
|
||||
# goldendict.exe can not used alone
|
||||
if you have a previous version. replace this maybe ok. if not ,download the whole bundle.
|
||||
|
||||
AppImage built with: Ubuntu-20.04 ,latest gcc
|
||||
macos built with: macos-10.15,macos-11.0,clang_64
|
||||
This is a prerelease version ,auto build by github action. use on your on risk:-)
|
||||
|
||||
CHANGES:
|
||||
${{ steps.vars.outputs.COMMIT_SUMMARY }}
|
1
.github/workflows/ubuntu.yml
vendored
1
.github/workflows/ubuntu.yml
vendored
|
@ -78,6 +78,7 @@ jobs:
|
|||
run: |
|
||||
qmake CONFIG+=release PREFIX=/usr CONFIG+=zim_support CONFIG+=chinese_conversion_support
|
||||
make INSTALL_ROOT=appdir -j`nproc` install; find appdir/
|
||||
|
||||
- name: Build AppImage
|
||||
run: |
|
||||
wget -c -nv "https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage"
|
||||
|
|
177
.github/workflows/windows-6.2.yml
vendored
Normal file
177
.github/workflows/windows-6.2.yml
vendored
Normal file
|
@ -0,0 +1,177 @@
|
|||
name: Windows-6.2
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [AutoTag]
|
||||
types: [completed]
|
||||
workflow_dispatch:
|
||||
# push代码时触发workflow
|
||||
# push:
|
||||
# branches:
|
||||
# - dev
|
||||
# - master
|
||||
# # - staged
|
||||
# paths-ignore:
|
||||
# - 'docs/**'
|
||||
# - ".github/**"
|
||||
# - "howto/**"
|
||||
# - "*.md"
|
||||
# - ".clang-format"
|
||||
# pull_request:
|
||||
# branches:
|
||||
# - dev
|
||||
# - master
|
||||
# # - staged
|
||||
# paths-ignore:
|
||||
# - 'docs/**'
|
||||
# - ".github/**"
|
||||
# - "howto/**"
|
||||
# - "*.md"
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
# 运行平台, windows-latest目前是windows server 2019
|
||||
# 参考文档 https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md
|
||||
runs-on: windows-2019
|
||||
strategy:
|
||||
# 矩阵配置
|
||||
matrix:
|
||||
# qt_ver: [5.15.2,6.2.2]
|
||||
include:
|
||||
# 5.15.2 参考 https://mirrors.cloud.tencent.com/qt/online/qtsdkrepository/windows_x86/desktop/qt5_5152/
|
||||
# - qt_ver: 5.15.2
|
||||
# qt_arch: win64_msvc2019_64
|
||||
# msvc_arch: x64
|
||||
# qt_target: x64
|
||||
# qt_arch_install: msvc2019_64
|
||||
- qt_ver: 6.2.3
|
||||
qt_arch: win64_msvc2019_64
|
||||
msvc_arch: x64
|
||||
qt_target: x64
|
||||
qt_arch_install: msvc2019_64
|
||||
env:
|
||||
targetName: GoldenDict.exe
|
||||
version: 22.2.alpha
|
||||
# 步骤
|
||||
steps:
|
||||
# 安装Qt
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v3
|
||||
with:
|
||||
# Version of Qt to install
|
||||
version: ${{ matrix.qt_ver }}
|
||||
# Target platform for build
|
||||
# target: ${{ matrix.qt_target }}
|
||||
arch: ${{ matrix.qt_arch }}
|
||||
cached: 'false'
|
||||
modules: qtwebengine qtwebchannel qtpositioning qt5compat qtmultimedia
|
||||
|
||||
# 拉取代码
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Set outputs
|
||||
id: githash
|
||||
run: |
|
||||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||
# - uses: Klemensas/action-autotag@stable
|
||||
# id: autotag
|
||||
# with:
|
||||
# GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
# tag_prefix: "v"
|
||||
# tag_suffix: "-${{ steps.githash.outputs.sha_short }}"
|
||||
|
||||
- name: Set outputs
|
||||
id: vars
|
||||
shell: bash
|
||||
run: |
|
||||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||
echo "::set-output name=release_date::$(date +'%Y%m%d')"
|
||||
echo "::set-output name=release_time::$(date +'%H%M%S')"
|
||||
echo "::set-output name=release_time_clock::$(date +'%H:%M:%S')"
|
||||
|
||||
previousTag=$(git tag --sort=-creatordate | sed -n 2p)
|
||||
echo "previousTag : $previousTag"
|
||||
|
||||
commitSummary="$(git shortlog $previousTag..HEAD)"
|
||||
echo "::set-output name=COMMIT_SUMMARY::\"$commitSummary\""
|
||||
|
||||
# msvc编译
|
||||
- uses: ilammy/msvc-dev-cmd@v1
|
||||
with:
|
||||
arch: ${{ matrix.msvc_arch }}
|
||||
- name: msvc-build goldendict
|
||||
id: build
|
||||
shell: cmd
|
||||
run: |
|
||||
# call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.msvc_arch }}
|
||||
qmake "CONFIG+=zim_support" CONFIG+=release
|
||||
nmake
|
||||
|
||||
echo winSdkDir=%WindowsSdkDir% >> %GITHUB_ENV%
|
||||
echo winSdkVer=%WindowsSdkVersion% >> %GITHUB_ENV%
|
||||
echo vcToolsInstallDir=%VCToolsInstallDir% >> %GITHUB_ENV%
|
||||
echo vcToolsRedistDir=%VCToolsRedistDir% >> %GITHUB_ENV%
|
||||
echo QTDIR=%Qt6_DIR% >> %GITHUB_ENV%
|
||||
|
||||
# 打包
|
||||
- name: package
|
||||
id: package
|
||||
env:
|
||||
archiveName: GoldenDict-${{ github.ref_name }}.${{ steps.vars.outputs.sha_short }}-${{ steps.vars.outputs.release_time }}
|
||||
msvcArch: ${{ matrix.msvc_arch }}
|
||||
shell: pwsh
|
||||
run: |
|
||||
& .github\scripts\windows-publish.ps1 ${env:archiveName} ${env:targetName}
|
||||
$name = ${env:archiveName}
|
||||
echo "::set-output name=packageName::$name"
|
||||
# tag 查询github-Release
|
||||
# 上传artifacts
|
||||
# - uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: ${{ steps.package.outputs.packageName }}
|
||||
# path: ${{ steps.package.outputs.packageName }}.zip
|
||||
# tag 上传Release
|
||||
- name: uploadRelease
|
||||
# if: startsWith(github.event.ref, 'refs/tags/')
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: ${{ steps.package.outputs.packageName }}.zip
|
||||
asset_name: ${{ matrix.qt_ver }}-${{ steps.package.outputs.packageName }}.zip
|
||||
tag: v${{ steps.autotag.outputs.version }}-${{ steps.vars.outputs.sha_short }}
|
||||
overwrite: true
|
||||
release_name: win-ubuntu-macos-${{ github.ref_name }}-${{steps.vars.outputs.release_date}}
|
||||
prerelease: true
|
||||
body: |
|
||||
release on date: ${{steps.vars.outputs.release_date}} time: ${{steps.vars.outputs.release_time_clock}}
|
||||
branch: ${{ github.ref_name }}
|
||||
commit: ${{ steps.vars.outputs.sha_short }}
|
||||
Qt version: ${{ matrix.qt_ver }} ${{ matrix.qt_arch }}
|
||||
Windows built with: msvc64 Visual studio 2019
|
||||
AppImage built with: Ubuntu-20.04 ,latest gcc
|
||||
|
||||
This is a prerelease version ,auto build by github action. use on your on risk:-)
|
||||
- name: upload goldendict.exe only
|
||||
# if: startsWith(github.event.ref, 'refs/tags/')
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: release/${{ env.targetName }}
|
||||
asset_name: ${{ matrix.qt_ver }}-${{ env.targetName }}
|
||||
tag: v${{ steps.autotag.outputs.version }}-${{ steps.vars.outputs.sha_short }}
|
||||
overwrite: true
|
||||
release_name: win-ubuntu-macos-${{ github.ref_name }}-${{steps.vars.outputs.release_date}}
|
||||
prerelease: true
|
||||
body: |
|
||||
release on date: ${{steps.vars.outputs.release_date}} time: ${{steps.vars.outputs.release_time_clock}}
|
||||
branch: ${{ github.ref_name }}
|
||||
commit: ${{ steps.vars.outputs.sha_short }}
|
||||
Qt version: ${{ matrix.qt_ver }} ${{ matrix.qt_arch }}
|
||||
Windows built with: msvc64 Visual studio 2019
|
||||
goldendict.exe was provided alone ,if you have a previous version. replace this maybe ok. if not ,download the whole bundle.
|
||||
AppImage built with: Ubuntu-20.04 ,latest gcc
|
||||
macos built with: macos-10.15,macos-11.0,clang_64
|
||||
This is a prerelease version ,auto build by github action. use on your on risk:-)
|
11
.github/workflows/windows.yml
vendored
11
.github/workflows/windows.yml
vendored
|
@ -37,13 +37,19 @@ jobs:
|
|||
matrix:
|
||||
include:
|
||||
# 5.15.2 参考 https://mirrors.cloud.tencent.com/qt/online/qtsdkrepository/windows_x86/desktop/qt5_5152/
|
||||
- qt_ver: 5.15.2
|
||||
- qt_ver: 5.15.2
|
||||
qt_arch: win64_msvc2019_64
|
||||
msvc_arch: x64
|
||||
qt_target: x64
|
||||
qt_arch_install: msvc2019_64
|
||||
qt_arch_install: msvc2019_64
|
||||
# - qt_ver: 6.2.3
|
||||
# qt_arch: win64_msvc2019_64
|
||||
# msvc_arch: x64
|
||||
# qt_target: x64
|
||||
# qt_arch_install: msvc2019_64
|
||||
env:
|
||||
targetName: GoldenDict.exe
|
||||
version: 22.2.alpha
|
||||
# 步骤
|
||||
steps:
|
||||
# 安装Qt
|
||||
|
@ -102,6 +108,7 @@ jobs:
|
|||
echo winSdkVer=%WindowsSdkVersion% >> %GITHUB_ENV%
|
||||
echo vcToolsInstallDir=%VCToolsInstallDir% >> %GITHUB_ENV%
|
||||
echo vcToolsRedistDir=%VCToolsRedistDir% >> %GITHUB_ENV%
|
||||
echo QTDIR=%Qt5_DIR% >> %GITHUB_ENV%
|
||||
|
||||
# 打包
|
||||
- name: package
|
||||
|
|
Loading…
Reference in a new issue