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 f400cf4
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 917 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
14 changes: 8 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,14 @@ 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\install_develop\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
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 f400cf4

Please sign in to comment.