Skip to content

Commit

Permalink
chore: Merge pull request #2 from jhg/use-external-doc-include-nightly
Browse files Browse the repository at this point in the history
Use external doc include nightly
  • Loading branch information
jhg committed Apr 25, 2024
2 parents 29df863 + 62c22d7 commit 56117cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
features: [ 'std', 'alloc', 'std,lender', 'alloc,lender' ]
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
Expand All @@ -50,7 +50,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
Expand Down
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down

0 comments on commit 56117cb

Please sign in to comment.