Skip to content

Commit

Permalink
Merge pull request #91 from quartiq/develop
Browse files Browse the repository at this point in the history
Initial 01.0 Release
  • Loading branch information
ryan-summers authored Oct 9, 2020
2 parents 28cefb9 + df89069 commit 5d08a80
Show file tree
Hide file tree
Showing 49 changed files with 7,761 additions and 10 deletions.
10 changes: 10 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
runner = "gdb-multiarch -q -x openocd.gdb"

rustflags = [
# LLD (shipped with the Rust toolchain) is used as the default linker
"-C", "link-arg=-Tlink.x",
]

[build]
target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
95 changes: 95 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Continuous Integration

on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]

env:
CARGO_TERM_COLOR: always

jobs:
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- name: cargo fmt --check
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: thumbv7em-none-eabihf
override: true
components: clippy
- name: cargo clippy
uses: actions-rs/cargo@v1
continue-on-error: true
with:
command: clippy

compile:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
steps:
- uses: actions/checkout@v2
- name: Install Rust ${{ matrix.toolchain }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: thumbv7em-none-eabihf
override: true
- name: cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --verbose
- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
- name: cargo build release
uses: actions-rs/cargo@v1
with:
command: build
args: --release

compile-unstable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust Nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: thumbv7em-none-eabihf
override: true
- name: cargo build+unstable
uses: actions-rs/cargo@v1
with:
command: build
args: --features unstable
- name: cargo build+release+unstable
uses: actions-rs/cargo@v1
with:
command: build
args: --release --features unstable
61 changes: 61 additions & 0 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: tagged-release

on:
push:
tags:
- "v*"

jobs:
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v2

- name: Install Rust (Stable)
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: thumbv7em-none-eabihf
components: llvm-tools-preview
override: true

- name: Install Binutils
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-binutils

- name: Build Debug
uses: actions-rs/cargo@v1
with:
command: build

- name: Build Release
uses: actions-rs/cargo@v1
with:
command: build
args: --release

- name: Dump Debug Binary
uses: actions-rs/cargo@v1
with:
command: objcopy
args: -- -O binary booster-debug.bin

- name: Dump Release Binary
uses: actions-rs/cargo@v1
with:
command: objcopy
args: --release -- -O binary booster-release.bin

- uses: marvinpinto/action-automatic-releases@v1.1.0
with:
prerelease: false
repo_token: '${{ secrets.ACCESS_TOKEN }}'
files: |
target/thumbv7em/debug/booster
target/thumbv7em/release/booster
booster-debug.bin
booster-release.bin
12 changes: 3 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# Generated by Cargo
# will have compiled files and executables
/target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk
.#*
.gdb_history
target/
Loading

0 comments on commit 5d08a80

Please sign in to comment.