Skip to content

Commit

Permalink
ci: switch to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Jan 11, 2020
1 parent 8e757b1 commit 901cada
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 67 deletions.
87 changes: 87 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: ci
on:
pull_request:
push:
branches:
- master
schedule:
- cron: '00 01 * * *'
jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
build:
- pinned
- pinned-win
- stable
- beta
- nightly
- macos
- win-msvc
- win-gnu
include:
- build: pinned
os: ubuntu-18.04
rust: 1.23.0
- build: pinned-win
os: windows-2019
rust: 1.23.0
- build: stable
os: ubuntu-18.04
rust: stable
- build: beta
os: ubuntu-18.04
rust: beta
- build: nightly
os: ubuntu-18.04
rust: nightly
- build: macos
os: macos-latest
rust: stable
- build: win-msvc
os: windows-2019
rust: stable
- build: win-gnu
os: windows-2019
rust: stable-x86_64-gnu
steps:
- name: Checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- run: cargo build --verbose
- run: cargo doc --verbose
- if: startsWith(matrix.build, 'pinned-') == false
run: cargo test --verbose
- if: matrix.build == 'nightly'
run: |
set -x
cargo generate-lockfile -Z minimal-versions
cargo build --verbose
cargo test --verbose
# TODO: Switch to rustfmt for walkdir 3. walkdir 3 is in a
# half-finished state, and applying rustfmt now would wreak havoc.
# rustfmt:
# name: rustfmt
# runs-on: ubuntu-18.04
# steps:
# - name: Checkout repository
# uses: actions/checkout@v1
# with:
# fetch-depth: 1
# - name: Install Rust
# uses: hecrj/setup-rust-action@v1
# with:
# rust-version: stable
# - name: Install rustfmt
# run: rustup component add rustfmt
# - name: Check formatting
# run: |
# cargo fmt --all -- --check
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ Comes with support for following symbolic links, controlling the number of
open file descriptors and efficient mechanisms for pruning the entries in the
directory tree.

[![Linux build status](https://api.travis-ci.org/BurntSushi/walkdir.svg)](https://travis-ci.org/BurntSushi/walkdir)
[![Windows build status](https://ci.appveyor.com/api/projects/status/github/BurntSushi/walkdir?svg=true)](https://ci.appveyor.com/project/BurntSushi/walkdir)
[![Build status](https://github.com/BurntSushi/walkdir/workflows/ci/badge.svg)](https://github.com/BurntSushi/walkdir/actions)
[![](http://meritbadge.herokuapp.com/walkdir)](https://crates.io/crates/walkdir)

Dual-licensed under MIT or the [UNLICENSE](http://unlicense.org).
Expand Down
26 changes: 0 additions & 26 deletions appveyor.yml

This file was deleted.

22 changes: 0 additions & 22 deletions ci/script.sh

This file was deleted.

0 comments on commit 901cada

Please sign in to comment.