diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 82cf562..062e621 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,7 +33,7 @@ jobs: rust: [ stable, beta ] runs-on: ${{ matrix.os }} timeout-minutes: 5 - if: github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' && !endsWith(github.ref, '-nightly') + if: github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' && !endsWith(github.ref, '-nightly') && !endsWith(github.head_ref, '-nightly') steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 @@ -49,7 +49,7 @@ jobs: lint: runs-on: ubuntu-latest timeout-minutes: 5 - if: github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' && !endsWith(github.ref, '-nightly') && !contains(github.ref, 'refs/tags/v') + if: github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' && !endsWith(github.ref, '-nightly') && !endsWith(github.head_ref, '-nightly') && !contains(github.ref, 'refs/tags/v') steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 diff --git a/src/lib.rs b/src/lib.rs index 953160f..625c158 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,4 @@ -//! FFI opaque pointers. -//! -//! FFI to use Rust objects from C as opaque pointer. - +#![doc = include_str!("../README.md")] // This also allow to run examples in that file. #![allow(unsafe_code)] #![warn(missing_docs)] #![warn(clippy::pedantic)]