From 5686b8f6c941464ceb7503c82b089a18b117e973 Mon Sep 17 00:00:00 2001 From: Sheen Tian Date: Sun, 1 Dec 2024 12:12:38 +0800 Subject: [PATCH] feat: update to Xcode 15 for github CI --- .github/workflows/build-linux-x86_64.yml | 26 +++++++++--------- .github/workflows/build-macos-x86_64.yml | 32 +++++++++++----------- .github/workflows/build-windows-x86_64.yml | 30 ++++++++++---------- .github/workflows/create-release.yml | 18 ++++++------ 4 files changed, 53 insertions(+), 53 deletions(-) diff --git a/.github/workflows/build-linux-x86_64.yml b/.github/workflows/build-linux-x86_64.yml index 30bd2c3f..302b121d 100644 --- a/.github/workflows/build-linux-x86_64.yml +++ b/.github/workflows/build-linux-x86_64.yml @@ -4,21 +4,21 @@ on: push: branches: [main] paths: - - '.github/workflows/build-linux-x86_64.yml' - - 'CMakeLists.txt' - - 'CefViewCore' - - 'example/**' - - 'include/**' - - 'src/**' + - ".github/workflows/build-linux-x86_64.yml" + - "CMakeLists.txt" + - "CefViewCore" + - "example/**" + - "include/**" + - "src/**" pull_request: branches: [main] paths: - - '.github/workflows/build-linux-x86_64.yml' - - 'CMakeLists.txt' - - 'CefViewCore' - - 'example/**' - - 'include/**' - - 'src/**' + - ".github/workflows/build-linux-x86_64.yml" + - "CMakeLists.txt" + - "CefViewCore" + - "example/**" + - "include/**" + - "src/**" env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) @@ -39,7 +39,7 @@ jobs: - name: Checkout Source uses: actions/checkout@v2 with: - submodules: 'true' + submodules: "true" - name: Cache CEF folders uses: actions/cache@v3 diff --git a/.github/workflows/build-macos-x86_64.yml b/.github/workflows/build-macos-x86_64.yml index a66fcf0f..816c17c9 100644 --- a/.github/workflows/build-macos-x86_64.yml +++ b/.github/workflows/build-macos-x86_64.yml @@ -4,21 +4,21 @@ on: push: branches: [main] paths: - - '.github/workflows/build-macos-x86_64.yml' - - 'CMakeLists.txt' - - 'CefViewCore' - - 'example/**' - - 'include/**' - - 'src/**' + - ".github/workflows/build-macos-x86_64.yml" + - "CMakeLists.txt" + - "CefViewCore" + - "example/**" + - "include/**" + - "src/**" pull_request: branches: [main] paths: - - '.github/workflows/build-macos-x86_64.yml' - - 'CMakeLists.txt' - - 'CefViewCore' - - 'example/**' - - 'include/**' - - 'src/**' + - ".github/workflows/build-macos-x86_64.yml" + - "CMakeLists.txt" + - "CefViewCore" + - "example/**" + - "include/**" + - "src/**" env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) @@ -36,17 +36,17 @@ jobs: - name: Install Qt uses: jurplel/install-qt-action@v3 with: - setup-python: 'true' - + setup-python: "true" + - name: Setup Xcode version uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '14' + xcode-version: "15" - name: Checkout Source uses: actions/checkout@v2 with: - submodules: 'true' + submodules: "true" - name: Cache CEF folders uses: actions/cache@v3 diff --git a/.github/workflows/build-windows-x86_64.yml b/.github/workflows/build-windows-x86_64.yml index 53c8fbbb..76dc7f6b 100644 --- a/.github/workflows/build-windows-x86_64.yml +++ b/.github/workflows/build-windows-x86_64.yml @@ -4,21 +4,21 @@ on: push: branches: [main] paths: - - '.github/workflows/build-windows-x86_64.yml' - - 'CMakeLists.txt' - - 'CefViewCore' - - 'example/**' - - 'include/**' - - 'src/**' + - ".github/workflows/build-windows-x86_64.yml" + - "CMakeLists.txt" + - "CefViewCore" + - "example/**" + - "include/**" + - "src/**" pull_request: branches: [main] paths: - - '.github/workflows/build-windows-x86_64.yml' - - 'CMakeLists.txt' - - 'CefViewCore' - - 'example/**' - - 'include/**' - - 'src/**' + - ".github/workflows/build-windows-x86_64.yml" + - "CMakeLists.txt" + - "CefViewCore" + - "example/**" + - "include/**" + - "src/**" env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) @@ -39,14 +39,14 @@ jobs: - name: Checkout Source uses: actions/checkout@v2 with: - submodules: 'true' + submodules: "true" - name: Cache CEF folders uses: actions/cache@v3 with: path: ${{github.workspace}}/CefViewCore/dep key: ${{ runner.os }}-core-dep-cef - + - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type @@ -60,7 +60,7 @@ jobs: if: github.event_name != 'pull_request' # Collect the output run: cmake --install ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - + - name: Create SDK artifact if: github.event_name != 'pull_request' uses: actions/upload-artifact@v3 diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 2f819945..8aeae59a 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -3,7 +3,7 @@ name: Create Release on: push: tags: - - 'v[0-9]+.[0-9]+.[0-9]+' + - "v[0-9]+.[0-9]+.[0-9]+" env: # Customize the CMake build type here (Release, Debug) @@ -29,14 +29,14 @@ jobs: - name: Checkout Source uses: actions/checkout@v2 with: - submodules: 'true' + submodules: "true" - name: Cache CEF folders uses: actions/cache@v2 with: path: ${{github.workspace}}/CefViewCore/dep key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} - + - name: Configure CMake run: cmake -B ${{github.workspace}}/build -A x64 -DPROJECT_ARCH=x86_64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_DEMO=ON -DCMAKE_INSTALL_PREFIX:PATH=${{github.workspace}}/out/install @@ -45,7 +45,7 @@ jobs: - name: Install run: cmake --install ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - + - name: Create SDK artifact uses: actions/upload-artifact@v3 with: @@ -66,12 +66,12 @@ jobs: - name: Install Qt uses: jurplel/install-qt-action@v3 with: - setup-python: 'false' + setup-python: "false" - name: Checkout Source uses: actions/checkout@v2 with: - submodules: 'true' + submodules: "true" - name: Cache CEF folders uses: actions/cache@v2 @@ -117,7 +117,7 @@ jobs: - name: Checkout Source uses: actions/checkout@v2 with: - submodules: 'true' + submodules: "true" - name: Cache CEF folders uses: actions/cache@v2 @@ -162,8 +162,8 @@ jobs: - name: Archive all artifacts run: for dir in ${{github.workspace}}/artifacts/*; do ( cd $dir && zip -r $dir-${{github.ref_name}}.zip . ) done - - - name: Publish Release + + - name: Publish Release uses: softprops/action-gh-release@v1 with: name: QCefView-${{github.ref_name}}