Skip to content
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
92 changes: 67 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,63 +10,105 @@ on:
- main
- "release/**"

permissions:
contents: read

jobs:
fmt:
name: Check Formatting (hexaGenMini)
runs-on: ubuntu-latest
defaults:
run:
working-directory: firmware
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Toolchain + components (rustfmt, clippy) + RP2040 target
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt,clippy
targets: thumbv6m-none-eabi

# Cache to speed up builds
- name: Cache cargo
uses: Swatinem/rust-cache@v2
with:
toolchain: stable
override: true
workspaces: |
firmware

- name: Check code formatting
run: cargo fmt -- --check

clippy:
name: Run Clippy Linter (hexaGenMini)
runs-on: ubuntu-latest
defaults:
run:
working-directory: firmware
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
targets: thumbv6m-none-eabi

- name: Cache cargo
uses: Swatinem/rust-cache@v2
with:
toolchain: stable
override: true
workspaces: |
firmware

- name: Run Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run Clippy (RP2040 target)
run: cargo clippy --target thumbv6m-none-eabi -- -D warnings

build:
name: Build Project (hexaGenMini)
name: Build (hexaGenMini)
runs-on: ubuntu-latest
defaults:
run:
working-directory: firmware
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
targets: thumbv6m-none-eabi

- name: Build
run: cargo build --locked --all-targets
- name: Cache cargo
uses: Swatinem/rust-cache@v2
with:
workspaces: |
firmware

# Eğer projenizde extra llvm-tools vs. gerekiyorsa burada ekleyebilirsiniz
# - run: rustup component add llvm-tools-preview

- name: Build (hexaGenMini)
run: cargo build --release --target thumbv6m-none-eabi

test:
name: Run Tests (hexaGenMini)
check:
name: Check compiles (hexaGenMini)
runs-on: ubuntu-latest
defaults:
run:
working-directory: firmware
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
targets: thumbv6m-none-eabi

- name: Cache cargo
uses: Swatinem/rust-cache@v2
with:
toolchain: stable
override: true
workspaces: |
firmware

- name: Run tests
run: cargo test --locked --all-targets
- name: Cargo check (RP2040 target)
run: cargo check --target thumbv6m-none-eabi
2 changes: 1 addition & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
- name: Lint commits
uses: wagoid/commitlint-github-action@v5
with:
configFile: .commitlintrc.yml
configFile: .github/.commitlintrc.yml
failOnWarnings: true
2 changes: 1 addition & 1 deletion .github/workflows/release-pr-protect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: ❌ Block Non-Develop PRs to Release
on:
pull_request:
branches:
- release/*
- release/**/*
types: [opened, synchronize]

jobs:
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# hexaGenMini
<!--
SPDX-FileCopyrightText: 2025 hexaTune LLC
SPDX-License-Identifier: MIT
-->

# hexaGenMini

18 changes: 17 additions & 1 deletion REUSE.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
version = 1

[[annotations]]
path = ["package.json", "CHANGELOG.md"]
path = ["package.json", "CHANGELOG.md", ".gitignore", "docs/CNAME"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2025 hexaTune LLC"
SPDX-License-Identifier = "MIT"

[[annotations]]
path = ["hardware/**", "mechanic/**"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2025 hexaTune LLC"
SPDX-License-Identifier = "MIT"

[[annotations]]
path = [
"firmware/.cargo/config.toml",
"firmware/Cargo.lock",
"firmware/memory.x",
]
precedence = "aggregate"
SPDX-FileCopyrightText = "2025 hexaTune LLC"
SPDX-License-Identifier = "MIT"
Expand Down
9 changes: 6 additions & 3 deletions firmware/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
runner = "probe-rs run --chip RP2040"

[build]
target-dir = "target"
target = "thumbv6m-none-eabi"
target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+

[target.thumbv6m-none-eabi]
rustflags = ["-C", "link-arg=-Tlink.x", "-C", "link-arg=--gc-sections"]
[env]
DEFMT_LOG = "debug"
Loading
Loading