Skip to content

ci: fix env var syntax #18

ci: fix env var syntax

ci: fix env var syntax #18

# SPDX-FileCopyrightText: 2024 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
#
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
# On demand flutter action to trigger binding regeneration
name: Generate Flutter Bindings
on:
push:
branches:
- 2.1
- main
pull_request:
branches:
- 2.1
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Remove clang 13
run: sudo apt remove clang-13 clang-14 libclang-common-13-dev libclang-common-14-dev -y
- name: Install dependencies on Ubuntu
run: |
sudo apt update -qq
sudo apt install libgtk-3-dev libglib2.0-dev ninja-build libspdlog-dev lld \
python3 python3-dev clang-15 llvm-15 libclang-15-dev libxslt-dev mesa-common-dev libglu1-mesa-dev libglib2.0-dev libfontconfig \
libxkbcommon-dev mesa-utils libgl1-mesa-dev libglu1-mesa-dev nlohmann-json3-dev clang-format-15 qt6-base-dev wget curl \
file unzip zip xz-utils -y
- name: Install Dart SDK
uses: dart-lang/setup-dart@v1
- name: Clone Dartagnan
uses: actions/checkout@v4
with:
repository: "KDABLabs/dartagnan.git"
submodules: true
ref: "main"
path: "${{ github.workspace }}/dartagnan"
- name: Build Dartagnan
run: |
cd dartagnan
cmake --preset=release -DCMAKE_INSTALL_PREFIX=installed
cd build-release
ninja && ninja install
- name: Refresh bindings
run: |
cd src/flutter
dart pub get
dart refresh_bindings.dart
git status
git checkout generated/KDDockWidgetsBindings/dart/lib/LibraryLoader.dart
env:
DARTAGNAN_CLANG_FORMAT: clang-format-15