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
172 changes: 172 additions & 0 deletions .github/workflows/ci.yml.orig
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
# SPDX-FileCopyrightText: 2025 hexaTune LLC
# SPDX-License-Identifier: MIT

name: 🤖 CI

on:
pull_request:
branches:
- develop
- main
- "release/**"

<<<<<<< HEAD
permissions:
contents: read

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

# Toolchain + components (rustfmt, clippy) + RP2040 target
- name: Install Rust
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:
workspaces: |
firmware
=======
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
>>>>>>> main

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

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

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

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

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

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

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

- 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

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

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

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

- name: Cargo check (RP2040 target)
run: cargo check --target thumbv6m-none-eabi
=======
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Run Clippy
run: cargo clippy --all-targets --all-features -- -D warnings

build:
name: Build Project (hexaGenMini)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Build
run: cargo build --locked --all-targets

test:
name: Run Tests (hexaGenMini)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Run tests
run: cargo test --locked --all-targets
>>>>>>> main
Loading
Loading