Skip to content

Commit

Permalink
Use github actions instead of travis-ci and appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarb committed Apr 15, 2022
1 parent a202c05 commit 0e95e0d
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 164 deletions.
131 changes: 0 additions & 131 deletions .appveyor.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: tests

on: [push, pull_request]

jobs:
tests:
name: Run tests
runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner: [ubuntu-latest, windows-latest, macos-latest]
toolchain: [1.59, stable, beta, nightly]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml') }}
- run: cargo build --verbose
- run: cargo test --verbose
- run: cargo build --verbose --release
- run: cargo test --verbose --release
- run: cargo build --verbose --features=no_cc
- run: cargo test --verbose --features=no_cc
- run: cargo build --verbose --release --features=no_cc
- run: cargo test --verbose --release --features=no_cc
- run: cargo build --verbose --features=nightly
if: ${{ matrix.toolchain == 'nightly' }}
- run: cargo test --verbose --features=nightly
if: ${{ matrix.toolchain == 'nightly' }}
- run: cargo build --verbose --release --features=nightly
if: ${{ matrix.toolchain == 'nightly' }}
- run: cargo test --verbose --release --features=nightly
if: ${{ matrix.toolchain == 'nightly' }}
- run: cargo bench --verbose
- run: cargo bench --verbose --features=no_cc
- run: cargo bench --verbose --features=nightly
if: ${{ matrix.toolchain == 'nightly' }}
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ license = "MIT OR Apache-2.0"

build = "build.rs"

[badges]
travis-ci = { repository = "cesarb/clear_on_drop" }
appveyor = { repository = "cesarb/clear_on_drop" }

[features]
no_cc = []
nightly = ["no_cc"]
Expand Down

0 comments on commit 0e95e0d

Please sign in to comment.