Skip to content

Commit 95580d4

Browse files
committed
switch to GitHub Actions
1 parent 4705fdd commit 95580d4

File tree

4 files changed

+102
-6
lines changed

4 files changed

+102
-6
lines changed

.github/workflows/ci-version.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI-version
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
tests:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os:
17+
- ubuntu-latest
18+
- macos-latest
19+
- windows-latest
20+
toolchain:
21+
- stable
22+
- nightly
23+
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }}
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: actions-rs/toolchain@v1
28+
with:
29+
profile: minimal
30+
toolchain: ${{ matrix.toolchain }}
31+
override: true
32+
- run: cargo build --release
33+
- run: cargo test --release
34+
- run: cargo doc --release

.github/workflows/ci.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: CI
2+
3+
on: [ push, pull_request ]
4+
5+
env:
6+
CARGO_TERM_COLOR: always
7+
8+
jobs:
9+
rustfmt:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions-rs/toolchain@v1
14+
with:
15+
profile: minimal
16+
toolchain: nightly
17+
override: true
18+
components: rustfmt
19+
- run: cargo fmt -- --check
20+
21+
clippy:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Install ImageMagick
25+
run: |
26+
sudo apt update
27+
sudo apt install libwebp-dev
28+
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
29+
tar xf ImageMagick.tar.gz
30+
mkdir /tmp/ImageMagick-lib
31+
cd ImageMagick-*
32+
./configure --enable-hdri --with-webp
33+
make
34+
sudo make install
35+
- uses: actions/checkout@v2
36+
- uses: actions-rs/toolchain@v1
37+
with:
38+
profile: minimal
39+
toolchain: nightly
40+
override: true
41+
components: clippy
42+
- run: cargo clippy -- -D warnings
43+
44+
tests:
45+
strategy:
46+
fail-fast: false
47+
matrix:
48+
os:
49+
- ubuntu-latest
50+
- macos-latest
51+
- windows-latest
52+
toolchain:
53+
- stable
54+
- nightly
55+
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }}
56+
runs-on: ${{ matrix.os }}
57+
steps:
58+
- uses: actions/checkout@v2
59+
- uses: actions-rs/toolchain@v1
60+
with:
61+
profile: minimal
62+
toolchain: ${{ matrix.toolchain }}
63+
override: true
64+
- run: cargo build
65+
- run: cargo test
66+
- run: cargo doc

Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lazy-static-include"
3-
version = "3.0.5"
3+
version = "3.0.6"
44
authors = ["Magic Len <len@magiclen.org>"]
55
edition = "2018"
66
repository = "https://github.com/magiclen/lazy-static-include"
@@ -12,10 +12,6 @@ readme = "README.md"
1212
license = "MIT"
1313
include = ["src/**/*", "Cargo.toml", "README.md", "LICENSE", "benches/bench.rs"]
1414

15-
[badges.travis-ci]
16-
repository = "magiclen/lazy-static-include"
17-
branch = "master"
18-
1915
[dependencies]
2016
lazy_static = "1.4"
2117
slash-formatter = "3"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Lazy Static Include
22
====================
33

4-
[![Build Status](https://travis-ci.org/magiclen/lazy-static-include.svg?branch=master)](https://travis-ci.org/magiclen/lazy-static-include)
4+
[![CI](https://github.com/magiclen/lazy-static-include/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/lazy-static-include/actions/workflows/ci.yml)
55

66
This crate provides `lazy_static_include_bytes` and `lazy_static_include_str` macros to replace `include_bytes` and `include_str` macros.
77

0 commit comments

Comments
 (0)