Skip to content

Commit ab07b7a

Browse files
authored
Migrate to GitHub Actions (#23)
* Migrate to GitHub Actions * Fix formatting
1 parent 22c0d0f commit ab07b7a

File tree

4 files changed

+54
-39
lines changed

4 files changed

+54
-39
lines changed

.circleci/config.yml

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

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
rustfmt:
7+
name: Check formatting
8+
strategy:
9+
matrix:
10+
version: ["eg-0.6", "eg-0.7", "eg-0.8", "eg-next"]
11+
fail-fast: false
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: dtolnay/rust-toolchain@stable
16+
with:
17+
components: rustfmt
18+
- run: cd "${{ matrix.version }}" && cargo fmt --check
19+
20+
build:
21+
name: Build examples
22+
strategy:
23+
matrix:
24+
version: ["eg-0.6", "eg-0.7", "eg-0.8", "eg-next"]
25+
fail-fast: false
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: dtolnay/rust-toolchain@stable
30+
- run: cd "${{ matrix.version }}" && cargo build

eg-0.8/Cargo.lock

Lines changed: 20 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eg-next/examples/text-custom-font.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ use embedded_graphics_simulator::{
1515
};
1616

1717
const SEVENT_SEGMENT_FONT: MonoFont = MonoFont {
18-
image: ImageRaw::new_const(include_bytes!("assets/seven-segment-font.raw"), Size::new(224, 40)),
18+
image: ImageRaw::new_const(
19+
include_bytes!("assets/seven-segment-font.raw"),
20+
Size::new(224, 40),
21+
),
1922
glyph_mapping: &StrGlyphMapping::new("0123456789", 0),
2023
character_size: Size::new(22, 40),
2124
character_spacing: 4,

0 commit comments

Comments
 (0)