Skip to content

ci: Install spdlog for flutter as well #6

ci: Install spdlog for flutter as well

ci: Install spdlog for flutter as well #6

Workflow file for this run

# SPDX-FileCopyrightText: 2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
#
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
# Builds the flutter frontend
# Doesn't run tests yet though
name: Flutter-dev
on:
push:
branches:
- 2.1
- main
pull_request:
branches:
- 2.1
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
preset:
- name: dev-flutter
isAOT: false
- name: dev-flutter-asan
isAOT: false
- name: dev-flutter-aot
isAOT: true
- name: dev-flutter-aot-asan
isAOT: true
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install dependencies on Ubuntu
run: |
sudo apt update -qq
sudo apt install libgtk-3-dev libglib2.0-dev ninja-build libspdlog-dev -y
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.7'
channel: 'stable'
- name: Configure project ${{ matrix.preset.name }}
run: cmake -S . -B ./build-${{ matrix.preset.name }} --preset ${{ matrix.preset.name }}
- name: Build Project ${{ matrix.preset.name }}
run: cmake --build ./build-${{ matrix.preset.name }}
- name: Build test embedder .dart
run: |
if: ${{ matrix.preset.isAOT == false }}
cd tests/flutter_tests_embedder/
flutter build bundle --suppress-analytics
- name: Build test embedder .dart (AOT)
run: |
if: ${{ matrix.preset.isAOT }}
cd tests/flutter_tests_embedder/
flutter build linux --release --suppress-analytics
- name: Build the example
run: |
cd examples/flutter
flutter build linux