Skip to content

Commit

Permalink
WIP: comment out steps while debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tronical committed Aug 11, 2024
1 parent f66372f commit 456ec9c
Showing 1 changed file with 63 additions and 63 deletions.
126 changes: 63 additions & 63 deletions .github/workflows/cpp_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,63 +14,63 @@ env:
SLINT_MCU_FEATURES: "-DSLINT_FEATURE_FREESTANDING=ON -DSLINT_FEATURE_RENDERER_SOFTWARE=ON"

jobs:
cmake_package_desktop:
env:
DYLD_FRAMEWORK_PATH: /Users/runner/work/slint/Qt/6.5.1/clang_64/lib
QT_QPA_PLATFORM: offscreen
CARGO_INCREMENTAL: false
strategy:
matrix:
os: [ubuntu-20.04, macOS-12, windows-2022]
include:
- os: ubuntu-20.04
package_suffix: linux
- os: macOS-12
package_suffix: macos
- os: windows-2022
package_suffix: windows

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-linux-dependencies
with:
old-ubuntu: true
- name: Install Qt (Ubuntu)
uses: jurplel/install-qt-action@v3
if: matrix.os == 'ubuntu-20.04'
with:
version: 5.15.2
cache: true
- uses: ./.github/actions/setup-rust
- uses: baptiste0928/cargo-install@v3
with:
crate: cargo-about
- name: Prepare licenses
run: bash -x ../../scripts/prepare_binary_package.sh ../..
working-directory: api/cpp/
- uses: ilammy/msvc-dev-cmd@v1
- name: Select MSVC (windows)
run: |
echo "CC=cl.exe" >> $GITHUB_ENV
echo "CXX=cl.exe" >> $GITHUB_ENV
if: matrix.os == 'windows-2022'
- name: C++ Build
uses: lukka/[email protected]
with:
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
cmakeListsTxtPath: CMakeLists.txt
cmakeAppendedArgs: "-DCMAKE_BUILD_TYPE=RelWithDebInfo ${{ env.SLINT_BINARY_FEATURES }}"
buildDirectory: ${{ runner.workspace }}/cppbuild
buildWithCMakeArgs: "--config Release"
- name: cpack
working-directory: ${{ runner.workspace }}/cppbuild
run: cmake --build . --config Release --target package
- name: "Upload C++ packages"
uses: actions/upload-artifact@v4
with:
name: cpp_bin-${{ matrix.package_suffix }}
path: ${{ runner.workspace }}/cppbuild/Slint-cpp-*
# cmake_package_desktop:
# env:
# DYLD_FRAMEWORK_PATH: /Users/runner/work/slint/Qt/6.5.1/clang_64/lib
# QT_QPA_PLATFORM: offscreen
# CARGO_INCREMENTAL: false
# strategy:
# matrix:
# os: [ubuntu-20.04, macOS-12, windows-2022]
# include:
# - os: ubuntu-20.04
# package_suffix: linux
# - os: macOS-12
# package_suffix: macos
# - os: windows-2022
# package_suffix: windows
#
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v4
# - uses: ./.github/actions/install-linux-dependencies
# with:
# old-ubuntu: true
# - name: Install Qt (Ubuntu)
# uses: jurplel/install-qt-action@v3
# if: matrix.os == 'ubuntu-20.04'
# with:
# version: 5.15.2
# cache: true
# - uses: ./.github/actions/setup-rust
# - uses: baptiste0928/cargo-install@v3
# with:
# crate: cargo-about
# - name: Prepare licenses
# run: bash -x ../../scripts/prepare_binary_package.sh ../..
# working-directory: api/cpp/
# - uses: ilammy/msvc-dev-cmd@v1
# - name: Select MSVC (windows)
# run: |
# echo "CC=cl.exe" >> $GITHUB_ENV
# echo "CXX=cl.exe" >> $GITHUB_ENV
# if: matrix.os == 'windows-2022'
# - name: C++ Build
# uses: lukka/[email protected]
# with:
# cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
# cmakeListsTxtPath: CMakeLists.txt
# cmakeAppendedArgs: "-DCMAKE_BUILD_TYPE=RelWithDebInfo ${{ env.SLINT_BINARY_FEATURES }}"
# buildDirectory: ${{ runner.workspace }}/cppbuild
# buildWithCMakeArgs: "--config Release"
# - name: cpack
# working-directory: ${{ runner.workspace }}/cppbuild
# run: cmake --build . --config Release --target package
# - name: "Upload C++ packages"
# uses: actions/upload-artifact@v4
# with:
# name: cpp_bin-${{ matrix.package_suffix }}
# path: ${{ runner.workspace }}/cppbuild/Slint-cpp-*

cmake_package_mcu:
env:
Expand All @@ -96,12 +96,12 @@ jobs:
- uses: ./.github/actions/setup-rust
with:
target: ${{ matrix.target }}
- uses: baptiste0928/cargo-install@v3
with:
crate: cargo-about
- name: Prepare licenses
run: bash -x ../../scripts/prepare_binary_package.sh ../..
working-directory: api/cpp/
# - uses: baptiste0928/cargo-install@v3
# with:
# crate: cargo-about
# - name: Prepare licenses
# run: bash -x ../../scripts/prepare_binary_package.sh ../..
# working-directory: api/cpp/
- uses: ilammy/msvc-dev-cmd@v1
- name: Select MSVC (windows)
run: |
Expand Down

0 comments on commit 456ec9c

Please sign in to comment.