Skip to content

Commit

Permalink
ci: Build and run the example
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsergio committed Apr 9, 2024
1 parent 443a7b5 commit 607c954
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# SPDX-FileCopyrightText: 2024 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
#
# SPDX-License-Identifier: MIT

# Builds the example with the pre-generated bindings.
# Does not generate bindings.

name: Build Example

on:
workflow_dispatch:
pull_request:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Install ninja
uses: turtlesec-no/get-ninja@main

- name: Build example
run: |
cmake .
ninja
- name: pub get
run |
cd app
dart pub get
cd ..
dart run app/bin/main.dart

0 comments on commit 607c954

Please sign in to comment.