Skip to content

Commit

Permalink
feat(init): Initialize repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoverbear committed Jul 26, 2020
0 parents commit 8fd263d
Show file tree
Hide file tree
Showing 20 changed files with 1,000 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[target.thumbv7em-none-eabi]
runner = "dk-run"
rustflags = [
"-C", "link-arg=-Tlink.x",
]

[build]
target = "thumbv7em-none-eabi" # = ARM Cortex-M4

[alias]
flash-nrf = ["flash", "--chip", "nRF52840_xxAA"]
81 changes: 81 additions & 0 deletions .github/workflows/flow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Suite

on:
push:
branches:
- root
tags:
- v*
pull_request: {}

env:
RELEASE: true
CHECK: true

jobs:
suite:
name: Suite
runs-on: ubuntu-20.04
steps:

- name: Checkout
uses: actions/checkout@v2

- name: Cargo cache restore
id: cargo-cache
uses: actions/cache@v2
with:
path: |
~/.cargo
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Pip cache restore
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-${{ hashFiles('**/requirements.txt') }}

- name: Run CI make task
run: make --trace ci

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: junctor
path: target/thumbv7em-none-eabi/release/junctor

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: CHANGELOG.md
path: CHANGELOG.md

- name: Cut a release if needed
if: startsWith(github.ref, 'refs/tags/v')
id: cut_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: CHANGELOG.md
draft: true
prerelease: false

- name: Upload release if needed
if: startsWith(github.ref, 'refs/tags/v')
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.cut_release.outputs.upload_url }}
asset_path: target/thumbv7em-none-eabi/release/junctor
asset_name: junctor
asset_content_type: application/octet-stream
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Changelog

### [v0.1.1](https://github.com/Hoverbear-Consulting/junctor/compare/v0.1.0...v0.1.1) (2020-07-26)

#### Features

* **kettlehead:** Fixup kettlehead 4d2dcdb


## v0.1.0 (2020-07-26)

### Features

* **init:** Initialize repository. c6298de


Loading

0 comments on commit 8fd263d

Please sign in to comment.