Skip to content

Commit 8084e8d

Browse files
Merge branch 'release/v0.4.0'
2 parents 4011af3 + 333aa65 commit 8084e8d

Some content is hidden

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

41 files changed

+3082
-1060
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
on: [push, pull_request]
2+
name: Build (and Release)
3+
4+
jobs:
5+
build:
6+
name: Build (and Release)
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v1
11+
with:
12+
submodules: true
13+
14+
- name: Add targets
15+
run: |
16+
rustup target add thumbv6m-none-eabi
17+
rustup target add thumbv7em-none-eabihf
18+
19+
- name: Install flip-link
20+
run: cd / && cargo install --debug flip-link
21+
22+
- name: Build/Test neotron-bmc-protocol
23+
run: cd neotron-bmc-protocol && cargo test
24+
25+
- name: Build neotron-bmc-pico
26+
run: cd neotron-bmc-pico && DEFMT_LOG=info cargo build --release --verbose --target=thumbv6m-none-eabi
27+
28+
- name: Build neotron-bmc-nucleo
29+
run: cd neotron-bmc-nucleo && DEFMT_LOG=info cargo build --release --verbose --target=thumbv7em-none-eabihf
30+
31+
- name: Get Branch Name
32+
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
33+
id: branch_name
34+
run: |
35+
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
36+
37+
- name: Create Release
38+
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
39+
id: create_release
40+
uses: actions/create-release@v1
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
with:
44+
tag_name: ${{ github.ref }}
45+
release_name: Release ${{ steps.branch_name.outputs.SOURCE_TAG }}
46+
draft: false
47+
prerelease: false
48+
49+
- name: Upload files to Release
50+
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
51+
uses: softprops/action-gh-release@v1
52+
with:
53+
files: |
54+
neotron-bmc-pico/target/thumbv6m-none-eabi/release/neotron-bmc-pico
55+
neotron-bmc-nucleo/target/thumbv7em-none-eabihf/release/neotron-bmc-nucleo
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/format.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@ jobs:
99
- uses: actions/checkout@v1
1010
- name: Add Tool
1111
run: rustup component add rustfmt
12-
- name: Check Format
13-
run: cargo fmt -- --check
12+
- name: Check format neotron-bmc-pico
13+
run: cd neotron-bmc-pico && cargo fmt -- --check
14+
- name: Check format neotron-bmc-nucleo
15+
run: cd neotron-bmc-nucleo && cargo fmt -- --check
16+
- name: Check format neotron-bmc-protocol
17+
run: cd neotron-bmc-protocol && cargo fmt -- --check

.github/workflows/release.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
/target
2-
Cargo.lock
1+
*/target
2+
target/
3+
*Cargo.lock*
4+
*/Cargo.lock

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@
22

33
## Unreleased Changes
44

5-
* None
5+
## v0.4.0
6+
7+
* Add very basic SPI interface support to neotron-bmc-pico
8+
* No changes to neotron-bmc-nucleo (it's now out of date)
9+
* Added `neotron-bmc-protocol` crate at v0.1.0
10+
11+
## v0.3.1
12+
* Reset button triggers 250ms low pulse
13+
* Fix STM32F030 support and remove STM32F031 support for neotron-bmc-pico
14+
15+
## v0.3.0
16+
* Add STM32F030 support to neotron-bmc-pico
617

718
## v0.2.0
819
* Change to blink power LED when in standby

Cargo.toml

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)