Skip to content

Commit

Permalink
Replace Travis with GitHub Actions for Allsorts
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianwong authored and cliu2018 committed Sep 14, 2023
1 parent 3818591 commit 4729d3e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 31 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches: ["master"]
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
pull_request:
branches: ["master"]
workflow_dispatch:

jobs:
ci:
strategy:
fail-fast: false
matrix:
rust: [beta, stable, 1.66.0]
os: [macos-latest, ubuntu-latest, windows-latest]
experimental: [false]
# Allow nightly jobs to fail without failing the workflow run.
include:
- rust: nightly
os: macos-latest
experimental: true
- rust: nightly
os: ubuntu-latest
experimental: true
- rust: nightly
os: windows-latest
experimental: true
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@v3
- run: cargo test
- run: cargo check --no-default-features --features flate2_zlib # Check without outline feature.
- run: cargo check --no-default-features --features flate2_rust
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<br>

<div align="center">
<a href="https://travis-ci.com/yeslogic/allsorts">
<img src="https://travis-ci.com/yeslogic/allsorts.svg?token=4GA6ydxNNeb6XeELrMmg&amp;branch=master" alt="Build Status"></a>
<a href="https://github.com/yeslogic/allsorts/actions/workflows/ci.yml">
<img src="https://github.com/yeslogic/allsorts/actions/workflows/ci.yml/badge.svg" alt="Build Status"></a>
<a href="https://docs.rs/allsorts">
<img src="https://docs.rs/allsorts/badge.svg" alt="Documentation">
</a>
Expand Down

0 comments on commit 4729d3e

Please sign in to comment.