Skip to content

Commit

Permalink
Merge pull request #5 from hedger/main
Browse files Browse the repository at this point in the history
Fixed include paths; added automated builds
  • Loading branch information
aafksab authored May 8, 2023
2 parents f1b282c + 667404b commit 3df7fdf
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 4 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "FAP: Build for multiple SDK sources"

on:
push:
branches:
- main
pull_request:
schedule:
# do a build every day
- cron: "1 1 * * *"

jobs:
ufbt-build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: dev channel
sdk-channel: dev
- name: release channel
sdk-channel: release
- name: Unleashed dev
sdk-index-url: https://up.unleashedflip.com/directory.json
sdk-channel: dev
- name: Unleashed release
sdk-index-url: https://up.unleashedflip.com/directory.json
sdk-channel: release
name: 'ufbt: Build for ${{ matrix.name }}'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build with ufbt
uses: flipperdevices/[email protected]
id: build-app
with:
sdk-channel: ${{ matrix.sdk-channel }}
sdk-index-url: ${{ matrix.sdk-index-url }}
- name: Upload app artifacts
uses: actions/upload-artifact@v3
with:
# See ufbt action docs for other output variables
name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
path: ${{ steps.build-app.outputs.fap-artifacts }}
2 changes: 1 addition & 1 deletion scenes/uart_terminal_scene_console_output.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "applications/external/lora_terminal/uart_terminal_app_i.h"
#include "../uart_terminal_app_i.h"
#include <string.h>
#include <furi.h>
#define appName "lora_terminal"
Expand Down
2 changes: 1 addition & 1 deletion scenes/uart_terminal_scene_start.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "applications/external/lora_terminal/uart_terminal_app_i.h"
#include "../uart_terminal_app_i.h"
#include <furi.h>

// For each command, define whether additional arguments are needed
Expand Down
2 changes: 1 addition & 1 deletion scenes/uart_terminal_scene_text_input.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "applications/external/lora_terminal/uart_terminal_app_i.h"
#include "../uart_terminal_app_i.h"

void uart_terminal_scene_text_input_callback(void* context) {
UART_TerminalApp* app = context;
Expand Down
2 changes: 1 addition & 1 deletion uart_terminal_app_i.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "uart_terminal_app.h"
#include "applications/external/lora_terminal/scenes/uart_terminal_scene.h"
#include "scenes/uart_terminal_scene.h"
#include "uart_terminal_custom_event.h"
#include "uart_terminal_uart.h"

Expand Down

0 comments on commit 3df7fdf

Please sign in to comment.