Skip to content

Commit

Permalink
feat: release version 0.2.0 (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
90degs2infty committed Jan 5, 2024
2 parents 6bc0477 + c001119 commit 5669749
Show file tree
Hide file tree
Showing 29 changed files with 2,692 additions and 130 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: General

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
target: thumbv7em-none-eabihf
- uses: Swatinem/rust-cache@v2
- name: Check compilation
run: cargo check

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
target: thumbv7em-none-eabihf
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: Enforce formatting
run: cargo fmt --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
target: thumbv7em-none-eabihf
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Linting
run: cargo clippy -- -D warnings

build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
include:
- profile: dev
target_dir: debug
- profile: release
target_dir: release
env:
DEFMT_LOG: info
RUST_LOG: info
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
target: thumbv7em-none-eabihf
- uses: Swatinem/rust-cache@v2
- name: Install `flip-link`
run: cargo install flip-link
- name: Build application in ${{ matrix.profile }} profile
run: cargo build --profile ${{ matrix.profile }} --locked
- name: Upload binary in ${{ matrix.profile }} profile
uses: actions/upload-artifact@v3
with:
name: microtile-app-${{ matrix.profile }}
path: |
target/thumbv7em-none-eabihf/${{ matrix.target_dir }}/microtile
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/target
Cargo.lock
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": "0.2.0",
"configurations": [
{
"preLaunchTask": "${defaultBuildTask}",
"type": "probe-rs-debug",
"request": "launch",
"name": "Debug microtile.rs",
"runtimeExecutable": "probe-rs",
"chip": "nRF52833_xxAA",
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/microtile"
}
],
"env": {
// If you set this variable, check the VSCode console log window for the location of the log file.
"RUST_LOG": "info",
"DEFMT_LOG": "info"
},
}
]
}
27 changes: 27 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "cargo",
"command": "build",
"args": [
"--profile",
"dev",
"--bin",
"microtile"
],
"env": {
"DEFMT_LOG": "info",
"RUST_LOG": "info"
},
"problemMatcher": [
"$rustc"
],
"group": {
"kind": "build",
"isDefault": true
},
"label": "rust: cargo build"
}
]
}
Loading

0 comments on commit 5669749

Please sign in to comment.