Skip to content

Commit

Permalink
Migrate to GitHub Actions (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor authored Mar 22, 2021
1 parent e2c9992 commit 7b3c31a
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 101 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI

on:
push:
branches:
# test & v4 branches
- 'try-**'
pull_request:
release:
types: [released, pre-released]

jobs:
ci:
strategy:
matrix:
version:
- 1.26.1 # MSRV
- stable
- nightly
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false # macOS sometimes fails to test
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- name: setup toolchain
run: |
rustup set profile minimal
rustup toolchain install ${{ matrix.version }}
rustup override set ${{ matrix.version }}
- name: MSRV check
if: matrix.version == '1.26.1'
shell: bash
run: |
mv Cargo.lock.min Cargo.lock
cargo build
- name: check build
if: matrix.version != '1.26.1'
run: |
cargo test --no-fail-fast
audit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: install cargo-audit
run: |
rustup override set stable
cargo install cargo-audit
- name: audit check
run: cargo audit
96 changes: 0 additions & 96 deletions .travis.yml

This file was deleted.

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ readme = "README.md"
license = "CC0-1.0"
keywords = ["events", "filesystem", "notify", "watch"]
categories = ["filesystem"]

[badges]
travis-ci = { repository = "notify-rs/notify", branch = "main" }
exclude = [
"/clippy.toml",
".github/*"
]

[dependencies]
bitflags = "^1.0.4"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![» Crate](https://flat.badgen.net/crates/v/notify)][crate]
[![» Docs](https://flat.badgen.net/badge/api/docs.rs/df3600)][docs]
[![» CI](https://flat.badgen.net/travis/notify-rs/notify/main)][build]
[![» CI](https://flat.badgen.net/github/checks/notify-rs/notify/try-v4)][build]
[![» Downloads](https://flat.badgen.net/crates/d/notify)][crate]
[![» Conduct](https://flat.badgen.net/badge/contributor/covenant/5e0d73)][coc]
[![» Public Domain](https://flat.badgen.net/badge/license/CC0-1.0/purple)][cc0]
Expand Down Expand Up @@ -108,7 +108,7 @@ Public Domain using the [Creative Commons Zero Declaration][cc0].
[alert-after]: https://github.com/frewsxcv/alert-after
[alacritty]: https://github.com/jwilm/alacritty
[artistic]: https://github.com/notify-rs/notify/blob/next/LICENSE
[build]: https://travis-ci.com/notify-rs/notify
[build]: https://github.com/notify-rs/notify/actions
[cargo watch]: https://github.com/passcod/cargo-watch
[cc0]: https://creativecommons.org/publicdomain/zero/1.0/
[cobalt]: https://github.com/cobalt-org/cobalt.rs
Expand Down
1 change: 1 addition & 0 deletions src/fsevent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ struct StreamContextInfo {
}

extern "C" {
/// Indicates whether the run loop is waiting for an event.
pub fn CFRunLoopIsWaiting(runloop: cf::CFRunLoopRef) -> bool;
}

Expand Down

0 comments on commit 7b3c31a

Please sign in to comment.