Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
target_steps: &target_steps
docker:
- image: circleci/rust:1.42.0
steps:
- checkout
- restore_cache:
key: v1-sh1106-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
- run: sudo apt install -qq linkchecker
- run: rustup default ${RUST_VERSION:-stable}
- run: rustup component add rustfmt
- run: |
SYSROOT=$(rustc --print sysroot)

if [[ ! "$SYSROOT" =~ "$TARGET" ]]; then
rustup target add $TARGET
else
echo "Target $TARGET is already installed"
fi
- run: ./build.sh
- save_cache:
key: v1-sh1106-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cargo.toml" }}
paths:
- ./target
- /home/ubuntu/.cargo

version: 2
jobs:
target-arm-unknown-linux-eabi:
environment:
- TARGET: 'arm-unknown-linux-gnueabi'
- DISABLE_EXAMPLES: 1
<<: *target_steps

target-armv7-unknown-linux-gnueabihf:
environment:
- TARGET: 'armv7-unknown-linux-gnueabihf'
- DISABLE_EXAMPLES: 1
<<: *target_steps

target-x86_64-unknown-linux-gnu:
environment:
- TARGET: 'x86_64-unknown-linux-gnu'
- DISABLE_EXAMPLES: 1
<<: *target_steps

target-x86_64-unknown-linux-musl:
environment:
- TARGET: 'x86_64-unknown-linux-musl'
- DISABLE_EXAMPLES: 1
<<: *target_steps

target-thumbv6m-none-eabi:
environment:
- TARGET: 'thumbv6m-none-eabi'
# Disable example builds as they target thumbv7 and up
- DISABLE_EXAMPLES: 1
<<: *target_steps

target-thumbv7em-none-eabi:
environment:
- TARGET: 'thumbv7em-none-eabi'
<<: *target_steps

target-thumbv7em-none-eabihf:
environment:
- TARGET: 'thumbv7em-none-eabihf'
<<: *target_steps

target-thumbv7m-none-eabi:
environment:
- TARGET: 'thumbv7m-none-eabi'
<<: *target_steps

build_jobs: &build_jobs
jobs:
# Raspberry Pi 1
- target-arm-unknown-linux-eabi

# Raspberry Pi 2, 3, etc
- target-armv7-unknown-linux-gnueabihf

# Linux
- target-x86_64-unknown-linux-gnu
- target-x86_64-unknown-linux-musl

# Bare metal
- target-thumbv6m-none-eabi
- target-thumbv7em-none-eabi
- target-thumbv7em-none-eabihf
- target-thumbv7m-none-eabi

workflows:
version: 2
build_all:
<<: *build_jobs

# Build every day
nightly:
<<: *build_jobs
triggers:
- schedule:
cron: '0 0 * * *'
filters:
branches:
only:
- master
71 changes: 0 additions & 71 deletions .travis.yml

This file was deleted.

58 changes: 18 additions & 40 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
# Changelog

`sh1106` is a Rust driver for the SH1106 OLED display. It supports
[`sh1106`](https://crates.io/crates/sh1106) is a Rust driver for the SH1106 OLED display. It supports
[embedded-graphics](https://crates.io/crates/embedded-graphics) or raw pixel drawing modes and works
with the [embedded-hal](crates.io/crates/embedded-hal) traits for maximum portability.

## 0.3.0-alpha.4
<!-- next-header -->

## [Unreleased] - ReleaseDate

### Added

- Migrate from Travis to CircleCI

### Changed

- **(breaking)** [#18](https://github.com/jamwaffles/sh1106/pull/18) Upgrade to embedded-graphics 0.6.0

## [0.3.0-alpha.4]

### Fixed

Expand All @@ -30,54 +42,20 @@ let mut disp: GraphicsMode<_> = sh1106::Builder::new()

Upgrade to new embedded-graphics `0.6.0-alpha.2` release. Please see the [embedded-graphics changelog](https://github.com/jamwaffles/embedded-graphics/blob/c0ed1700635f307a4c5114fec1769147878fd584/CHANGELOG.md) for more information.

### Added

- None

### Changed

- **(breaking)** #11 Upgraded to [embedded-graphics](https://crates.io/crates/embedded-graphics) 0.6.0-alpha.2

### Deprecated

- None

### Removed

- None

### Fixed

- None

### Security

- None

## 0.3.0-alpha.1

Upgrade to new embedded-graphics `0.6.0-alpha.1` release. Please see the [embedded-graphics changelog](https://github.com/jamwaffles/embedded-graphics/blob/embedded-graphics-v0.6.0-alpha.1/CHANGELOG.md) for more information.

### Added

- None

### Changed

- **(breaking)** #9 Upgraded to [embedded-graphics](https://crates.io/crates/embedded-graphics) 0.6.0-alpha.1

### Deprecated

- None

### Removed

- None

### Fixed

- None

### Security
<!-- next-url -->

- None
[unreleased]: https://github.com/jamwaffles/sh1106/compare/v0.3.0-alpha.4...HEAD
[0.3.0-alpha.4]: https://github.com/jamwaffles/sh1106/compare/v0.3.0-alpha.3...v0.3.0-alpha.4
[0.3.0-alpha.3]: https://github.com/jamwaffles/sh1106/compare/v0.3.0-alpha.2...v0.3.0-alpha.3
11 changes: 7 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ readme = "README.md"
repository = "https://github.com/jamwaffles/sh1106"
version = "0.3.0-alpha.4"
edition = "2018"
[badges.travis-ci]
branch = "master"
repository = "jamwaffles/sh1106"

[package.metadata.docs.rs]
default-target = "x86_64-unknown-linux-gnu"

[badges]
circle-ci = { repository = "jamwaffles/sh1106", branch = "master" }

[dependencies]
embedded-hal = "0.2.3"

[dependencies.embedded-graphics]
optional = true
version = "=0.6.0-alpha.2"
version = "0.6.0"

[dev-dependencies]
cortex-m = "0.6.0"
Expand Down
Loading