Skip to content

Commit fedae45

Browse files
authored
Merge pull request #103 from rhysd/github-actions
Add minimal CI workflow using GitHub Actions
2 parents 7f105bf + 6ce81e5 commit fedae45

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
env:
5+
RUSTFLAGS: -D warnings
6+
RUST_BACKTRACE: 1
7+
CARGO_TERM_COLOR: always
8+
9+
jobs:
10+
unit-test:
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, macos-latest, windows-latest]
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: dtolnay/rust-toolchain@stable
18+
- run: cargo test
19+
rustfmt:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: dtolnay/rust-toolchain@nightly
24+
with:
25+
components: rustfmt
26+
- run: cargo fmt -- --check

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# encoding_rs
22

3+
[![Build Status](https://github.com/hsivonen/encoding_rs/actions/workflows/ci.yml/badge.svg)](https://github.com/hsivonen/encoding_rs/actions/workflows/ci.yml)
34
[![crates.io](https://img.shields.io/crates/v/encoding_rs.svg)](https://crates.io/crates/encoding_rs)
45
[![docs.rs](https://docs.rs/encoding_rs/badge.svg)](https://docs.rs/encoding_rs/)
56

0 commit comments

Comments
 (0)