Skip to content

Commit

Permalink
Merge pull request #126 from Enselic/basic-github-actions-port
Browse files Browse the repository at this point in the history
Port basics of .travis.yml to GitHub Actions
  • Loading branch information
sdroege authored Oct 24, 2021
2 parents a0824eb + 238e8b3 commit 8f7ade8
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 32 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
name: ${{ matrix.rust }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- 1.30.0
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
default: true
profile: minimal
- run: rustup component add rustfmt-preview
- name: cargo fmt --all -- --check if stable
run: |
if [ "${{ matrix.rust }}" = "stable" ]; then
cargo fmt --all -- --check
fi
- run: |
cargo build --verbose
- run: |
cargo test --verbose
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pkg-config-rs

[![Build Status](https://travis-ci.com/rust-lang/pkg-config-rs.svg?branch=master)](https://travis-ci.com/rust-lang/pkg-config-rs)
[![Build Status](https://github.com/rust-lang/pkg-config-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/rust-lang/pkg-config-rs/actions)
[![Rust](https://img.shields.io/badge/rust-1.30%2B-blue.svg?maxAge=3600)](https://github.com/rust-lang/pkg-config-rs/)

[Documentation](https://docs.rs/pkg-config)
Expand Down

0 comments on commit 8f7ade8

Please sign in to comment.