Skip to content

Commit

Permalink
Add CI actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsteele committed Sep 28, 2024
1 parent 49c582d commit 302790c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: tests

on:
push:
paths-ignore:
- 'LICENSE-*'
- '**.md'
pull_request:
paths-ignore:
- 'LICENSE-*'
- '**.md'

jobs:
tests:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest]
rust: [ stable ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Test
run: cargo test --verbose

linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt, clippy
- name: Cargo fmt
run: cargo fmt --all -- --check
- name: Cargo clippy
run: cargo clippy --all-features -- -D warnings
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# rust-icns

A Rust library for encoding/decoding Apple Icon Image (.icns) files.
[![Build Status](https://github.com/mdsteele/rust-icns/actions/workflows/tests.yml/badge.svg)](https://github.com/mdsteele/rust-icns/actions/workflows/tests.yml)
[![Crates.io](https://img.shields.io/crates/v/icns.svg)](https://crates.io/crates/icns)
[![Documentation](https://docs.rs/icns/badge.svg)](https://docs.rs/icns)

Documentation: https://docs.rs/icns
A Rust library for encoding/decoding Apple Icon Image (.icns) files.

## Overview

Expand Down

0 comments on commit 302790c

Please sign in to comment.