Skip to content

Commit

Permalink
CI: modify ci
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Feb 20, 2024
1 parent fe7bd08 commit 1ace2e4
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 978 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
BUILD_TYPE: [Release]
qt_arch: [android_arm64_v8a, android_x86_64]
qt_version: [6.6.1]
qt_version: [6.6.2]
include:
- BUILD_TYPE: Release
qt_arch: android_arm64_v8a
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
APK_FILE=`find . -name "android-*.apk"`
cp $APK_FILE ChineseChessControl_${{env.ChineseChessControl_VERSION}}_${{matrix.qt_arch}}_qt${{matrix.qt_version}}_${{matrix.BUILD_TYPE}}.apk
cmake --build . --config ${{matrix.BUILD_TYPE}} --target install
7z a ChineseChessControl_${{env.ChineseChessControl_VERSION}}_${{matrix.qt_arch}}_qt${{matrix.qt_version}}_${{matrix.BUILD_TYPE}}.zip install/*
7z a ChineseChessControl_${{env.ChineseChessControl_VERSION}}_${{matrix.qt_arch}}_qt${{matrix.qt_version}}_${{matrix.BUILD_TYPE}}.zip ./install/*
- name: Update artifact
#if: ${{ matrix.BUILD_TYPE == 'Release' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
matrix:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: [Release, Debug]
qt_version: [6.5.1, 5.15.2, 5.12.12]
qt_version: [6.6.2, 5.15.2, 5.12.12]
qt_arch: [clang_64]
VCPKG_TARGET_TRIPLET: [x64-osx]
include:
- qt_version: 6.5.1
- qt_version: 6.6.2
qt_modules: 'qtscxml qtmultimedia qtimageformats'

- qt_version: 5.15.2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
mingw-w64-x86_64-make ^
mingw-w64-x86_64-nsis ^
mingw-w64-x86_64-gcc ^
mingw-w64-x86_64-qt6 ^
mingw-w64-x86_64-qt6-multimedia ^
mingw-w64-x86_64-qt6-svg ^
mingw-w64-x86_64-qt5 ^
mingw-w64-x86_64-qt5-multimedia ^
mingw-w64-x86_64-qt5-svg ^
mingw-w64-x86_64-qtwebkit ^
mingw-w64-x86_64-zlib ^
mingw-w64-x86_64-7zip ^
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
strategy:
matrix:
BUILD_TYPE: [Release, Debug]
qt_version: [6.6.1, 5.15.2, 5.12.12]
qt_version: [6.6.2, 5.15.2, 5.12.12]
include:
- qt_version: 6.6.1
- qt_version: 6.6.2
triplet: x64-windows
VCPKG_PLATFORM_TOOLSET: v142
qt_arch: win64_msvc2019_64
CMAKE_GENERATOR_PLATFORM: x64
qt_modules: qtscxml qtwebchannel qtwebsockets qtwebview qtpositioning
qt_modules: qtmultimedia qtimageformats qtscxml qtwebchannel qtwebsockets qtwebview qtpositioning

- qt_version: 5.15.2
triplet: x64-windows
Expand Down Expand Up @@ -132,6 +132,7 @@ jobs:
copy /Y ${{env.INSTALL_DIR}}\lib\*.dll install\bin
copy /Y ${{env.RUNVCPKG_VCPKG_ROOT}}\installed\${{env.RUNVCPKG_VCPKG_TRIPLET_OUT}}\bin\*.dll install\bin
makensis Install.nsi
RENAME ChineseChessControl_${{env.ChineseChessControl_VERSION}}_Setup.exe ChineseChessControl_${{env.ChineseChessControl_VERSION}}_${{matrix.qt_arch}}_Qt${{matrix.qt_version}}_${{matrix.BUILD_TYPE}}_Setup.exe
- name: Package develop library
working-directory: ${{github.workspace}}\build
Expand All @@ -140,13 +141,13 @@ jobs:
cmake --install . --config ${{matrix.BUILD_TYPE}} --prefix=%CD%\install_develop --component=QtDevelopment
cmake --install . --config ${{matrix.BUILD_TYPE}} --prefix=%CD%\install_develop --component=Development
7z a ChineseChessControl_${{env.ChineseChessControl_VERSION}}_${{matrix.qt_arch}}_Qt${{matrix.qt_version}}_${{matrix.BUILD_TYPE}}_Develop.zip %CD%\install_develop\.
cmake --build . --config ${{ matrix.BUILD_TYPE }} --target package
cd install_develop
cmake --build ${{github.workspace}}\build --config ${{ matrix.BUILD_TYPE }} --target package
- name: Update artifact
if: ${{ matrix.BUILD_TYPE == 'Release' && matrix.update_artifact }}
uses: actions/upload-artifact@v2
with:
name: ${{ env.artifact_name }}
path: |
${{github.workspace}}\build\chinesechesscontrol_*.exe
${{github.workspace}}\build\ChineseChessControl_*.exe
${{github.workspace}}\build\ChineseChessControl_${{env.ChineseChessControl_VERSION}}_${{matrix.qt_arch}}_Qt${{matrix.qt_version}}_${{matrix.BUILD_TYPE}}_Develop.zip
2 changes: 1 addition & 1 deletion Install/Install.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ LangString LANG_DIRECTORY_PERMISSION ${LANG_SIMPCHINESE} "无目录访问权限"

Name "$(LANG_PRODUCT_NAME) ${PRODUCT_VERSION}"
Caption "$(LANG_PRODUCT_NAME) ${PRODUCT_VERSION}"
OutFile "${PRODUCT_NAME}_${PRODUCT_VERSION}_msvc@MSVC_VERSION@_@BUILD_ARCH@_Setup.exe"
OutFile "${PRODUCT_NAME}_${PRODUCT_VERSION}_Setup.exe"
InstallDir "$PROGRAMFILES\${PRODUCT_NAME}"
;InstallDirRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_DIR_REGKEY}" ""

Expand Down
64 changes: 3 additions & 61 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,67 +76,9 @@
![Android 屏幕截图](Documents/Image/androidShotScreen.jpg "Android 屏幕截图")

#### [下载安装包](https://github.com/KangLin/ChineseChessControl/releases/latest)
+ [最后版本](https://github.com/KangLin/ChineseChessControl/releases/latest)
+ 当前版本:
- Windows安装包,支持 Windows 7 以上系统。
- chinesechesscontrol_v2.0.11_Windows_x64_setup.exe
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/chinesechesscontrol_v2.0.11_Windows_x64_setup.exe)
- [从 Sourceforge 下载](https://sourceforge.net/projects/chinesechesscontrol/files/v2.0.11/chinesechesscontrol_v2.0.11_Windows_x64_setup.exe/download)
- chinesechesscontrol_v2.0.11_Windows_X86_setup.exe
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/chinesechesscontrol_v2.0.11_Windows_X86_setup.exe)
- [从 Sourceforge 下载](https://sourceforge.net/projects/chinesechesscontrol/files/v2.0.11/chinesechesscontrol_v2.0.11_Windows_X86_setup.exe/download)
- ChineseChessControl_v2.0.11_msvc1929_x86_64_Setup.exe
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/ChineseChessControl_v2.0.11_msvc1929_x86_64_Setup.exe)
- [从 Sourceforge 下载](https://sourceforge.net/projects/chinesechesscontrol/files/v2.0.11/ChineseChessControl_v2.0.11_msvc1929_x86_64_Setup.exe/download)
- ChineseChessControl_v2.0.11_msvc1916_x86_Setup.exe
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/ChineseChessControl_v2.0.11_msvc1916_x86_Setup.exe)
- [从 Sourceforge 下载](https://sourceforge.net/projects/chinesechesscontrol/files/v2.0.11/ChineseChessControl_v2.0.11_msvc1916_x86_Setup.exe/download)

- Windows开发包,安装完成后,使用请详见:[开发者文档](Documents/Developer.md#调试)

- ChineseChessControl_v2.0.11_win32_msvc2017_Qt5.12.12_Develop.zip
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/ChineseChessControl_v2.0.11_win32_msvc2017_Qt5.12.12_Develop.zip)
- [从 Sourceforge 下载](https://sourceforge.net/projects/chinesechesscontrol/files/v2.0.11/ChineseChessControl_v2.0.11_win32_msvc2017_Qt5.12.12_Develop.zip/download)
- ChineseChessControl_v2.0.11_win64_msvc2019_64_qt6.5.1_Develop.zip
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/ChineseChessControl_v2.0.11_win64_msvc2019_64_qt6.5.1_Develop.zip)
- [从 Sourceforge 下载](https://sourceforge.net/projects/chinesechesscontrol/files/v2.0.11/ChineseChessControl_v2.0.11_win64_msvc2019_64_Qt6.5.1_Develop.zip/download)

- linux
- chinesechesscontrol_v2.0.11_Linux_x86_64_setup.sh
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/chinesechesscontrol_v2.0.11_Linux_x86_64_setup.sh)
- [从 Sourceforge 下载](https://sourceforge.net/projects/chinesechesscontrol/files/v2.0.11/chinesechesscontrol_v2.0.11_Linux_x86_64_setup.sh/download)

- ubuntu
- chinesechesscontrol_v2.0.11_Linux_x86_64_setup.deb
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/chinesechesscontrol_v2.0.11_Linux_x86_64_setup.deb)
- [从 Sourceforge 下载](https://sourceforge.net/projects/chinesechesscontrol/files/v2.0.11/chinesechesscontrol_v2.0.11_Linux_x86_64_setup.deb/download)

- Macos
- chinesechesscontrol_v2.0.11_Darwin_x86_64_setup.tar.gz
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/chinesechesscontrol_v2.0.11_Darwin_x86_64_setup.tar.gz)
- [从 Sourceforge 下载](https://sourceforge.net/projects/chinesechesscontrol/files/v2.0.11/chinesechesscontrol_v2.0.11_Darwin_x86_64_setup.tar.gz/download)

- Android
- APK
- ChineseChessControl_v2.0.11_android_arm64_v8a_qt6.5.1_Release.apk
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/ChineseChessControl_v2.0.11_android_arm64_v8a_qt6.5.1_Release.apk)
- [从 Sourceforge 下载](https://sourceforge.net/projects/chinesechesscontrol/files/v2.0.11/ChineseChessControl_v2.0.11_android_arm64_v8a_qt6.5.1_Release.apk/download)
- ChineseChessControl_v2.0.11_android_armv7_qt6.5.1_Release.apk
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/ChineseChessControl_v2.0.11_android_armv7_qt6.5.1_Release.apk)
- [从 Sourceforge 下载](https://sourceforge.net/projects/chinesechesscontrol/files/v2.0.11/ChineseChessControl_v2.0.11_android_armv7_qt6.5.1_Release.apk/download)
- ChineseChessControl_v2.0.11_android_x86_64_qt6.5.1_Release.apk
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/ChineseChessControl_v2.0.11_android_x86_64_qt6.5.1_Release.apk)
- [从 Sourceforge 下载](https://sourceforge.net/projects/chinesechesscontrol/files/v2.0.11/ChineseChessControl_v2.0.11_android_x86_64_qt6.5.1_Release.apk/download)
- 开发包
- ChineseChessControl_v2.0.11_android_arm64_v8a_qt6.5.1_Release.zip
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/ChineseChessControl_v2.0.11_android_arm64_v8a_qt6.5.1_Release.zip)
- [从 Sourceforge 下载](https://sourceforge.net/projects/chinesechesscontrol/files/v2.0.11/ChineseChessControl_v2.0.11_android_arm64_v8a_qt6.5.1_Release.zip/download)
- ChineseChessControl_v2.0.11_android_armv7_qt6.5.1_Release.zip
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/ChineseChessControl_v2.0.11_android_armv7_qt6.5.1_Release.zip)
- [从 Sourceforge 下载](https://sourceforge.net/projects/chinesechesscontrol/files/v2.0.11/ChineseChessControl_v2.0.11_android_armv7_qt6.5.1_Release.zip/download)
- ChineseChessControl_v2.0.11_android_x86_64_qt6.5.1_Release.zip
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/ChineseChessControl_v2.0.11_android_x86_64_qt6.5.1_Release.zip)
- [从 Sourceforge 下载](https://sourceforge.net/projects/chinesechesscontrol/files/v2.0.11/ChineseChessControl_v2.0.11_android_x86_64_qt6.5.1_Release.zip/download)
+ 最后版本
- [![从 github 下载](https://img.shields.io/github/release/KangLin/ChineseChessControl.svg?label=Github%20Release)](https://github.com/KangLin/ChineseChessControl/releases/latest)
- [![从 sourceforge 下载](https://a.fsdn.com/con/app/sf-download-button)](https://sourceforge.net/projects/rabbitChineseChessControl/files/latest/download)

+ 开发文档
- [从 GITHUB 下载](https://github.com/KangLin/ChineseChessControl/releases/download/v2.0.11/ChineseChessControl_v2.0.11_document.zip)
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ build_script:
- cmake --build . --config Release --target package

artifacts:
- path: build_$(BUILD_TARGERT)\ChineseChessControl*.exe
- path: build\chinesechesscontrol*.exe

test: off

Expand Down
9 changes: 0 additions & 9 deletions ci/backgroud_echo.sh

This file was deleted.

166 changes: 0 additions & 166 deletions ci/build-install-tools-windows.sh

This file was deleted.

Loading

0 comments on commit 1ace2e4

Please sign in to comment.