Skip to content

Commit 57dee21

Browse files
authored
Migrate from CircleCI to GitHub Actions (#22)
1 parent 3190876 commit 57dee21

File tree

6 files changed

+67
-58
lines changed

6 files changed

+67
-58
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/rust-toolchain@1.81
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
## [Unreleased] - ReleaseDate
88

9+
### Changed
10+
11+
- **(breaking)** [#22](https://github.com/embedded-graphics/tinytga/pull/22) Use 1.81 as MSRV.
12+
913
## [0.5.0] - 2023-05-17
1014

1115
### Added

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ nom = { version = "7.1.1", default-features = false }
3131
paste = "1.0"
3232
criterion = "0.3.5"
3333
clap = { version = "3.2.22", features = ["derive"] }
34-
embedded-graphics-simulator = "0.5.0"
34+
embedded-graphics-simulator = { version = "0.5.0", default_features = false }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ images with the origin at the top left corner will generally result in the best
107107

108108
## Minimum supported Rust version
109109

110-
The minimum supported Rust version for tinytga is `1.61` or greater.
110+
The minimum supported Rust version for tinytga is `1.81` or greater.
111111
Ensure you have the correct version of Rust installed, preferably through <https://rustup.rs>.
112112

113113
[embedded-graphics]: https://docs.rs/embedded-graphics

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
//!
102102
//! # Minimum supported Rust version
103103
//!
104-
//! The minimum supported Rust version for tinytga is `1.61` or greater.
104+
//! The minimum supported Rust version for tinytga is `1.81` or greater.
105105
//! Ensure you have the correct version of Rust installed, preferably through <https://rustup.rs>.
106106
//!
107107
//! [`ImageOrigin`]: enum.ImageOrigin.html

0 commit comments

Comments
 (0)