Skip to content

Commit 5d08a80

Browse files
authored
Merge pull request #91 from quartiq/develop
Initial 01.0 Release
2 parents 28cefb9 + df89069 commit 5d08a80

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+7761
-10
lines changed

.cargo/config

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
2+
runner = "gdb-multiarch -q -x openocd.gdb"
3+
4+
rustflags = [
5+
# LLD (shipped with the Rust toolchain) is used as the default linker
6+
"-C", "link-arg=-Tlink.x",
7+
]
8+
9+
[build]
10+
target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)

.github/workflows/ci.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches: [master, develop]
6+
pull_request:
7+
branches: [master, develop]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
style:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions-rs/toolchain@v1
18+
with:
19+
profile: minimal
20+
toolchain: stable
21+
override: true
22+
components: rustfmt
23+
- name: cargo fmt --check
24+
uses: actions-rs/cargo@v1
25+
with:
26+
command: fmt
27+
args: --all -- --check
28+
29+
clippy:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: actions-rs/toolchain@v1
34+
with:
35+
profile: minimal
36+
toolchain: stable
37+
target: thumbv7em-none-eabihf
38+
override: true
39+
components: clippy
40+
- name: cargo clippy
41+
uses: actions-rs/cargo@v1
42+
continue-on-error: true
43+
with:
44+
command: clippy
45+
46+
compile:
47+
runs-on: ubuntu-latest
48+
strategy:
49+
matrix:
50+
toolchain:
51+
- stable
52+
- beta
53+
steps:
54+
- uses: actions/checkout@v2
55+
- name: Install Rust ${{ matrix.toolchain }}
56+
uses: actions-rs/toolchain@v1
57+
with:
58+
toolchain: ${{ matrix.toolchain }}
59+
target: thumbv7em-none-eabihf
60+
override: true
61+
- name: cargo check
62+
uses: actions-rs/cargo@v1
63+
with:
64+
command: check
65+
args: --verbose
66+
- name: cargo build
67+
uses: actions-rs/cargo@v1
68+
with:
69+
command: build
70+
- name: cargo build release
71+
uses: actions-rs/cargo@v1
72+
with:
73+
command: build
74+
args: --release
75+
76+
compile-unstable:
77+
runs-on: ubuntu-latest
78+
steps:
79+
- uses: actions/checkout@v2
80+
- name: Install Rust Nightly
81+
uses: actions-rs/toolchain@v1
82+
with:
83+
toolchain: nightly
84+
target: thumbv7em-none-eabihf
85+
override: true
86+
- name: cargo build+unstable
87+
uses: actions-rs/cargo@v1
88+
with:
89+
command: build
90+
args: --features unstable
91+
- name: cargo build+release+unstable
92+
uses: actions-rs/cargo@v1
93+
with:
94+
command: build
95+
args: --release --features unstable
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: tagged-release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
tagged-release:
10+
name: "Tagged Release"
11+
runs-on: "ubuntu-latest"
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Install Rust (Stable)
17+
uses: actions-rs/toolchain@v1
18+
with:
19+
toolchain: stable
20+
target: thumbv7em-none-eabihf
21+
components: llvm-tools-preview
22+
override: true
23+
24+
- name: Install Binutils
25+
uses: actions-rs/cargo@v1
26+
with:
27+
command: install
28+
args: cargo-binutils
29+
30+
- name: Build Debug
31+
uses: actions-rs/cargo@v1
32+
with:
33+
command: build
34+
35+
- name: Build Release
36+
uses: actions-rs/cargo@v1
37+
with:
38+
command: build
39+
args: --release
40+
41+
- name: Dump Debug Binary
42+
uses: actions-rs/cargo@v1
43+
with:
44+
command: objcopy
45+
args: -- -O binary booster-debug.bin
46+
47+
- name: Dump Release Binary
48+
uses: actions-rs/cargo@v1
49+
with:
50+
command: objcopy
51+
args: --release -- -O binary booster-release.bin
52+
53+
- uses: marvinpinto/[email protected]
54+
with:
55+
prerelease: false
56+
repo_token: '${{ secrets.ACCESS_TOKEN }}'
57+
files: |
58+
target/thumbv7em/debug/booster
59+
target/thumbv7em/release/booster
60+
booster-debug.bin
61+
booster-release.bin

.gitignore

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
# Generated by Cargo
2-
# will have compiled files and executables
3-
/target/
4-
5-
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
6-
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
7-
Cargo.lock
8-
9-
# These are backup files generated by rustfmt
101
**/*.rs.bk
2+
.#*
3+
.gdb_history
4+
target/

0 commit comments

Comments
 (0)