Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy up: final updates and optimisations #6

Merged
merged 17 commits into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/build-project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build project
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]

jobs:
static-check:
name: Build project
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Compile project
uses: arduino/compile-sketches@v1
with:
libraries: |
- name: MT-arduino-momentary-button@3.0.0
- name: MT-arduino-stepper-driver@2.0.0
- name: ArduinoLog@1.1.1
sketch-paths: |
- ./
52 changes: 0 additions & 52 deletions .github/workflows/build-test-release.yaml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/generate-binaries.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Generate binaries
on:
workflow_dispatch:

jobs:
build:
name: Generate binaries
runs-on: ubuntu-latest

env:
# Environment variables
BUILD_DIR: build

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install and setup dependencies
run: |
sudo apt-get update
sudo bash -x scripts/setup-build-linux.sh -cli --path
sudo bash -x scripts/setup-build-linux.sh -deps
- name: Build/compile the project
run: sudo bash -x scripts/setup-build-linux.sh -build
- name: Upload compiled binaries
uses: actions/upload-artifact@v4
with:
name: binaries
path: |
${{ env.BUILD_DIR }}/*.bin
retention-days: 7
23 changes: 23 additions & 0 deletions .github/workflows/static-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Static check
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]

jobs:
static-check:
name: Static check
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Arduino lint
uses: arduino/arduino-lint-action@v1
with:
compliance: specification
library-manager: false
project-type: sketch
recursive: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.vscode
build
out
29 changes: 0 additions & 29 deletions CMakeLists.txt

This file was deleted.

198 changes: 0 additions & 198 deletions CMakePresets.json

This file was deleted.

Loading
Loading