Skip to content

Commit 2c67eec

Browse files
authored
Migrate from CircleCI to GitHub Actions (#49)
1 parent 846b570 commit 2c67eec

File tree

8 files changed

+71
-68
lines changed

8 files changed

+71
-68
lines changed

.circleci/config.yml

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

.github/workflows/ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
rustfmt:
7+
name: Check formatting
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: dtolnay/rust-toolchain@stable
12+
with:
13+
components: rustfmt
14+
- run: cargo fmt --check
15+
16+
tests:
17+
name: Tests (stable)
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: dtolnay/rust-toolchain@stable
22+
- run: cargo test
23+
24+
tests-msrv:
25+
name: Tests (MSRV)
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: dtolnay/[email protected]
30+
- run: cargo test
31+
32+
build-no_std:
33+
name: Build no_std
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: dtolnay/rust-toolchain@stable
38+
with:
39+
target: thumbv7m-none-eabi
40+
- run: cargo build --target thumbv7m-none-eabi
41+
42+
build-benches:
43+
name: Build benches
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
- uses: dtolnay/rust-toolchain@stable
48+
- run: cargo bench --no-run
49+
50+
check-readme:
51+
name: Check readme
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: taiki-e/install-action@just
55+
- uses: taiki-e/install-action@v2
56+
with:
57+
tool: cargo-readme
58+
- uses: actions/checkout@v4
59+
- uses: dtolnay/rust-toolchain@stable
60+
- run: just check-readme

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@
66

77
## [Unreleased] - ReleaseDate
88

9-
- [#46](https://github.com/embedded-graphics/tinybmp/pull/46) `Bmp::from_slice` is now `const`, so BMPs can be put in `const`s and `static`s.
9+
### Changed
1010

11-
- [#47](https://github.com/embedded-graphics/tinybmp/pull/47) Ignore compressed data length on RGB compression mehod
11+
- **(breaking)** [#49](https://github.com/embedded-graphics/tinybmp/pull/41) Use 1.81 as the MSRV.
12+
- [#46](https://github.com/embedded-graphics/tinybmp/pull/46) `Bmp::from_slice` is now `const`, so BMPs can be put in `const`s and `static`s.
13+
- [#47](https://github.com/embedded-graphics/tinybmp/pull/47) Ignore compressed data length on RGB compression method.
1214

1315
## [0.6.0] - 2024-06-11
1416

1517
### Added
1618

17-
- [#41](https://github.com/embedded-graphics/tinybmp/pull/41) Added support for RLE8 and RLE4 encoded bitmaps
19+
- [#41](https://github.com/embedded-graphics/tinybmp/pull/41) Added support for RLE8 and RLE4 encoded bitmaps.
1820

1921
### Changed
2022

Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@ readme = "./README.md"
1212
license = "MIT OR Apache-2.0"
1313
exclude = [
1414
"/.github/",
15-
"/.circleci/",
1615
".gitignore",
1716
]
1817

19-
[badges]
20-
circle-ci = { repository = "embedded-graphics/tinybmp", branch = "master" }
21-
2218
[[test]]
2319
name = "embedded_graphics"
2420

@@ -36,4 +32,4 @@ embedded-graphics = "0.8.0"
3632
[dev-dependencies]
3733
clap = { version = "3.1.6", features = ["derive"] }
3834
criterion = "0.3.5"
39-
embedded-graphics-simulator = "0.5.0"
35+
embedded-graphics-simulator = { version = "0.5.0", default-features = false }

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TinyBMP
22

3-
[![Build Status](https://circleci.com/gh/embedded-graphics/tinybmp/tree/master.svg?style=shield)](https://circleci.com/gh/embedded-graphics/tinybmp/tree/master)
3+
[![CI Status](https://github.com/embedded-graphics/tinybmp/actions/workflows/ci.yml/badge.svg)](https://github.com/embedded-graphics/tinybmp/actions/workflows/ci.yml)
44
[![Crates.io](https://img.shields.io/crates/v/tinybmp.svg)](https://crates.io/crates/tinybmp)
55
[![Docs.rs](https://docs.rs/tinybmp/badge.svg)](https://docs.rs/tinybmp)
66
[![embedded-graphics on Matrix](https://img.shields.io/matrix/rust-embedded-graphics:matrix.org)](https://matrix.to/#/#rust-embedded-graphics:matrix.org)
@@ -131,7 +131,7 @@ assert_eq!(pixel, Some(0xFFFFFFu32));
131131

132132
## Minimum supported Rust version
133133

134-
The minimum supported Rust version for tinybmp is `1.71` or greater. Ensure you have the correct
134+
The minimum supported Rust version for tinybmp is `1.81` or greater. Ensure you have the correct
135135
version of Rust installed, preferably through <https://rustup.rs>.
136136

137137
[`Bmp`]: https://docs.rs/tinybmp/latest/tinybmp/struct.Bmp.html

README.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TinyBMP
22

3-
[![Build Status](https://circleci.com/gh/embedded-graphics/tinybmp/tree/master.svg?style=shield)](https://circleci.com/gh/embedded-graphics/tinybmp/tree/master)
3+
[![CI Status](https://github.com/embedded-graphics/tinybmp/actions/workflows/ci.yml/badge.svg)](https://github.com/embedded-graphics/tinybmp/actions/workflows/ci.yml)
44
[![Crates.io](https://img.shields.io/crates/v/tinybmp.svg)](https://crates.io/crates/tinybmp)
55
[![Docs.rs](https://docs.rs/tinybmp/badge.svg)](https://docs.rs/tinybmp)
66
[![embedded-graphics on Matrix](https://img.shields.io/matrix/rust-embedded-graphics:matrix.org)](https://matrix.to/#/#rust-embedded-graphics:matrix.org)

doc/releasing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Target audience: crate maintainers who wish to release `tinybmp`.
77
## On GitHub
88

99
- Check that all desired PRs are merged and all desired issues are closed/resolved.
10-
- Check that the latest master build passed in CircleCI.
10+
- Check that the latest main branch build passed all CI tests.
1111

1212
## On your local machine
1313

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
//!
134134
//! # Minimum supported Rust version
135135
//!
136-
//! The minimum supported Rust version for tinybmp is `1.71` or greater. Ensure you have the correct
136+
//! The minimum supported Rust version for tinybmp is `1.81` or greater. Ensure you have the correct
137137
//! version of Rust installed, preferably through <https://rustup.rs>.
138138
//!
139139
//! <!-- README-LINKS

0 commit comments

Comments
 (0)