Skip to content

Commit

Permalink
Add linux CI via github actions (#48)
Browse files Browse the repository at this point in the history
Travis CI no longer seems to be running. This commit sets up github actions
to build/test xed-sys on linux. It mainly mirrors the tests run by appveyor.

The main change that this commit makes otherwise is to not run clippy
during CI. There's too many false positive warnings in CI due to all the generated
code so it turns out to not be useful here.
  • Loading branch information
Phantomical authored Jun 26, 2021
1 parent 2c4fc3d commit 8b15512
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

on: [push, pull_request]

name: ci-linux

jobs:
build_and_test:
name: xed-rs
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
toolchain: [stable, beta]
experimental: [false]
include:
- toolchain: nightly
experimental: true
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- uses: actions-rs/cargo@v1
with:
command: test
1 change: 0 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@ build: false

test_script:
- cargo test --verbose
- cargo clippy --all-targets --all-features -- -D warnings
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,14 @@ mod _detail {
pub(crate) mod xed_interface_inner {
#![allow(
clippy::all,
unknown_lints,
non_camel_case_types,
non_snake_case,
non_upper_case_globals,
renamed_and_removed_lints, // needed for intra_doc_link_resolution_failure
intra_doc_link_resolution_failure
intra_doc_link_resolution_failure,
// Needed due to rust-lang/rust-bindgen#1651
deref_nullptr
)]

include!(concat!(env!("OUT_DIR"), "/xed_interface.rs"));
Expand Down

0 comments on commit 8b15512

Please sign in to comment.