Skip to content

Commit

Permalink
WIP: arm linux packages
Browse files Browse the repository at this point in the history
  • Loading branch information
tronical committed Jan 6, 2025
1 parent ba4a363 commit f36d740
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cpp_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,35 @@ jobs:
name: cpp_mcu_bin-${{ matrix.idf_target }}
path: ${{ runner.workspace }}/cppbuild/Slint-cpp-*

cmake_package_arm_linux:
env:
CARGO_INCREMENTAL: false
strategy:
matrix:
gcc_target: [aarch64-unknown-linux-gnu, armv7-unknown-linux-gnueabhif]
include:
- gcc_target: aarch64-linux-gnu
rust_target: aarch64-unknown-linux-gnu
- gcc_target: arm-linux-gnueabihf
rust_target: armv7-unknown-linux-gnueabhif

runs-on: ubuntu-20.04
container: ghcr.io/slint-ui/slint/${{ matrix.rust_target }}-cpp
steps:
- uses: actions/checkout@v4
- name: CMake configure
run: cmake -B build -S . -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DRust_CARGO_TARGET=${{ matrix.rust_target}} -DCMAKE_C_COMPILER=${{ matrix.gcc_target }}-gcc -DCMAKE_CXX_COMPILER=${{ matrix.gcc_target }}-g++ -DSLINT_COMPILER=download
- name: CMake build
run: cmake --build build --parallel
- name: CMake package
working-directory: ${{ runner.workspace }}/build
run: cpack -G TGZ
- name: "Upload C++ packages"
uses: actions/upload-artifact@v4
with:
name: cpp_linux_bin-${{ matrix.rust_target }}
path: ${{ runner.workspace }}/build/Slint-cpp-*

cmake_slint_compiler:
env:
CARGO_INCREMENTAL: false
Expand Down

0 comments on commit f36d740

Please sign in to comment.