mirror of
https://github.com/jaredtao/TaoQuick.git
synced 2025-01-17 20:12:54 +08:00
update actions
This commit is contained in:
parent
269b548d8c
commit
eb863d5569
2
.github/workflows/macos.yml
vendored
2
.github/workflows/macos.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-10.15,macos-11.0]
|
||||
os: [macos-10.15,macos-11.0,macos-12]
|
||||
qt_ver: [5.9.9,5.12.10,5.15.2]
|
||||
qt_arch: [clang_64]
|
||||
env:
|
||||
|
32
.github/workflows/ubuntu.yml
vendored
32
.github/workflows/ubuntu.yml
vendored
@ -27,15 +27,21 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-18.04,ubuntu-20.04]
|
||||
os: [ubuntu-18.04,ubuntu-20.04,ubuntu-22.04]
|
||||
qt_ver: [5.9.9,5.12.10,5.15.2]
|
||||
qt_arch: [gcc_64]
|
||||
env:
|
||||
targetName: TaoQuickShow
|
||||
steps:
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v2
|
||||
with:
|
||||
version: ${{ matrix.qt_ver }}
|
||||
cached: 'false'
|
||||
- name: Install QT linux deploy
|
||||
uses: miurahr/install-linuxdeploy-action@v1
|
||||
with:
|
||||
plugins: qt appimage
|
||||
- name: ubuntu install GL library
|
||||
run: sudo apt-get install -y libglew-dev libglfw3-dev
|
||||
- uses: actions/checkout@v2
|
||||
@ -45,4 +51,26 @@ jobs:
|
||||
- name: build ubuntu
|
||||
run: |
|
||||
qmake
|
||||
make
|
||||
make
|
||||
- name: package
|
||||
run: |
|
||||
# make sure Qt plugin finds QML sources so it can deploy the imported files
|
||||
export QML_SOURCES_PATHS=./
|
||||
# 拷贝依赖
|
||||
linuxdeploy-x86_64.AppImage --plugin=qt --output=appimage --create-desktop-file --icon-file=examples/TaoQuickShow/${targetName}.svg --executable=bin/release/${targetName} --appdir bin/release/
|
||||
mv ${{ env.targetName }}-*.AppImage ${{ env.targetName }}.AppImage
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ env.targetName }}_${{ matrix.os }}_${{matrix.qt_ver}}
|
||||
path: ${{ env.targetName }}.AppImage
|
||||
|
||||
- name: uploadRelease
|
||||
if: startsWith(github.event.ref, 'refs/tags/')
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: ${{ env.targetName }}.AppImage
|
||||
asset_name: ${{ env.targetName }}_${{ github.ref_name }}_${{ matrix.os }}_Qt${{ matrix.qt_ver }}.AppImage
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
@ -11,7 +11,7 @@ on:
|
||||
- 'scripts/windows-*.ps1'
|
||||
- '.qmake.conf'
|
||||
- 'TaoQuick.pro'
|
||||
- '.github/workflows/windows.yml'
|
||||
- '.github/workflows/windows-2019.yml'
|
||||
# pull_request时触发workflow
|
||||
pull_request:
|
||||
paths:
|
||||
@ -22,11 +22,11 @@ on:
|
||||
- 'scripts/windows-*.ps1'
|
||||
- '.qmake.conf'
|
||||
- 'TaoQuick.pro'
|
||||
- '.github/workflows/windows.yml'
|
||||
- '.github/workflows/windows-2019.yml'
|
||||
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:
|
104
.github/workflows/windows-2022.yml
vendored
Normal file
104
.github/workflows/windows-2022.yml
vendored
Normal file
@ -0,0 +1,104 @@
|
||||
# 参考文档 https://docs.github.com/en/free-pro-team@latest/actions/
|
||||
name: Windows
|
||||
on:
|
||||
# push代码时触发workflow
|
||||
push:
|
||||
paths:
|
||||
- '3rdparty/**'
|
||||
- 'examples/**'
|
||||
- 'mkspecs/**'
|
||||
- 'src/**'
|
||||
- 'scripts/windows-*.ps1'
|
||||
- '.qmake.conf'
|
||||
- 'TaoQuick.pro'
|
||||
- '.github/workflows/windows-2022.yml'
|
||||
# pull_request时触发workflow
|
||||
pull_request:
|
||||
paths:
|
||||
- '3rdparty/**'
|
||||
- 'examples/**'
|
||||
- 'mkspecs/**'
|
||||
- 'src/**'
|
||||
- 'scripts/windows-*.ps1'
|
||||
- '.qmake.conf'
|
||||
- 'TaoQuick.pro'
|
||||
- '.github/workflows/windows-2022.yml'
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
# 运行平台
|
||||
# 参考文档 https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md
|
||||
runs-on: windows-2022
|
||||
strategy:
|
||||
# 矩阵配置
|
||||
matrix:
|
||||
include:
|
||||
# 5.15.2 参考 https://mirrors.cloud.tencent.com/qt/online/qtsdkrepository/windows_x86/desktop/qt5_5152/
|
||||
- qt_ver: 5.15.2
|
||||
qt_arch: win32_msvc2019
|
||||
msvc_arch: x86
|
||||
qt_arch_install: msvc2019
|
||||
- qt_ver: 5.15.2
|
||||
qt_arch: win64_msvc2019_64
|
||||
msvc_arch: x64
|
||||
qt_arch_install: msvc2019_64
|
||||
env:
|
||||
targetName: TaoQuickShow.exe
|
||||
# 步骤
|
||||
steps:
|
||||
# 安装Qt
|
||||
- name: Install Qt
|
||||
# 使用外部action。这个action专门用来安装Qt
|
||||
uses: jurplel/install-qt-action@v2
|
||||
with:
|
||||
# Version of Qt to install
|
||||
version: ${{ matrix.qt_ver }}
|
||||
# Target platform for build
|
||||
# target: ${{ matrix.qt_target }}
|
||||
arch: ${{ matrix.qt_arch }}
|
||||
cached: 'false'
|
||||
# 拉取代码
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
submodules: 'true'
|
||||
# msvc编译
|
||||
- name: msvc-build
|
||||
id: build
|
||||
shell: cmd
|
||||
run: |
|
||||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.msvc_arch }}
|
||||
qmake
|
||||
nmake
|
||||
echo winSdkDir=%WindowsSdkDir% >> %GITHUB_ENV%
|
||||
echo winSdkVer=%WindowsSdkVersion% >> %GITHUB_ENV%
|
||||
echo vcToolsInstallDir=%VCToolsInstallDir% >> %GITHUB_ENV%
|
||||
echo vcToolsRedistDir=%VCToolsRedistDir% >> %GITHUB_ENV%
|
||||
# tag 打包
|
||||
- name: package
|
||||
id: package
|
||||
# if: startsWith(github.event.ref, 'refs/tags/')
|
||||
env:
|
||||
archiveName: ${{ matrix.qt_ver }}-${{ matrix.qt_arch }}
|
||||
msvcArch: ${{ matrix.msvc_arch }}
|
||||
shell: pwsh
|
||||
run: |
|
||||
& scripts\windows-publish.ps1 ${env:archiveName} ${env:targetName}
|
||||
# 记录packageName给后续step
|
||||
$name = ${env:archiveName}
|
||||
echo "::set-output name=packageName::$name"
|
||||
# 上传artifacts
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ steps.package.outputs.packageName }}
|
||||
path: ${{ steps.package.outputs.packageName }}
|
||||
# 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: ${{ steps.package.outputs.packageName }}.zip
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
31
examples/TaoQuickShow/TaoQuickShow.svg
Normal file
31
examples/TaoQuickShow/TaoQuickShow.svg
Normal file
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <image id="image0" width="64" height="64" x="0" y="0"
|
||||
href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAACBjSFJN
|
||||
AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABsFBMVEUAAAAwMDAzMzMyMjIz
|
||||
MzMyMjIzMzMyMjIzMzMzMzMyMjIyMjIxMTEyMjIwMDAyMjIzMzMzMzMwMDAwMDAyMjI4ODg2NjYy
|
||||
MjIyMjIyMjIyMjIzMzOCgoLu7u7+qkb+qkbr6+uAgIDn5+fr2sMzMzMyMjL/pj7/pj0yMjIwMDBV
|
||||
Qjb/k0z/l0j/lEw8NzQzMzM/Pz9ycnKlpaXLy8uysrJ5eXk9PT1LS0v////5+fm5ubleXl6YmJj8
|
||||
/Pzp6emioqIyMjLY2Nj+/v7o6OjOzs44ODj6+vqAgIC/v79RUVE8PDzl5eU+Pj7Dw8Otra1YWFis
|
||||
rKyLi4t/f3/m5ua4uLjy8vLt7e1ISEhlZWX/9Ob/6c/138VuWD5lTzXhy7H09PT/pz76slz8rlLa
|
||||
2tqXl5fm4drr1brSvKFUVFRfX1/yxpH5t2j0wodlSzlLPjWlakHLfEb/lU1/Vz3liEm/dkWYYz9L
|
||||
OjVlPzd/RTqlTz1YPDb/bUb/ZUX/j0vyYkT/iErLWED/f0myUj5yUTv/fEiYSzv/cUdyQjjyj0uy
|
||||
cENZRTf/fUjlXkJMOTWZTDxZPDYLwy42AAAAL3RSTlMAMF+Pv59Qf/Cg0JA/cEDvr28QIN/29LKA
|
||||
YL3P38D8+89wQEywwJDA4E/TQCDQ+/bV+T4AAAABYktHRDigB6XWAAAAB3RJTUUH5wUMDiIA6I/a
|
||||
eAAAArtJREFUWMPtlutbEkEUxhdc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bMAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjMtMDUtMTJUMTQ6MzQ6
|
||||
MDArMDA6MDC3il0PAAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDIzLTA1LTEyVDE0OjM0OjAwKzAw
|
||||
OjAw4J980AAAAABJRU5ErkJggg==" />
|
||||
</svg>
|
After Width: | Height: | Size: 2.5 KiB |
Loading…
x
Reference in New Issue
Block a user