summaryrefslogtreecommitdiffstats
path: root/.github/workflows/cbindgen.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:39:07 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:39:07 +0000
commitaf6b8ed095f88f1df2116cdc7a9d44872cfa6074 (patch)
tree1f2df671c1f8033d5ed83f056167a0911f8d2a57 /.github/workflows/cbindgen.yml
parentInitial commit. (diff)
downloadrust-cbindgen-af6b8ed095f88f1df2116cdc7a9d44872cfa6074.tar.xz
rust-cbindgen-af6b8ed095f88f1df2116cdc7a9d44872cfa6074.zip
Adding upstream version 0.26.0.upstream/0.26.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/workflows/cbindgen.yml')
-rw-r--r--.github/workflows/cbindgen.yml87
1 files changed, 87 insertions, 0 deletions
diff --git a/.github/workflows/cbindgen.yml b/.github/workflows/cbindgen.yml
new file mode 100644
index 0000000..13b1d04
--- /dev/null
+++ b/.github/workflows/cbindgen.yml
@@ -0,0 +1,87 @@
+name: cbindgen
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ rustfmt-clippy:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Install stable
+ uses: dtolnay/rust-toolchain@stable
+ with:
+ components: "clippy, rustfmt"
+
+ - name: Run rustfmt
+ run: |
+ cargo +stable fmt --check
+
+ - name: Run clippy
+ run: |
+ cargo +stable clippy --workspace -- -D warnings
+
+ - name: Install minimum supported Rust version
+ id: msrv
+ uses: dtolnay/rust-toolchain@1.64
+
+ - name: Build with minimum supported Rust version
+ run: |
+ cargo +${{steps.msrv.outputs.name}} test nonexistent-test --verbose
+
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Install stable Rust
+ uses: dtolnay/rust-toolchain@stable
+
+ - name: Install Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: '3.8'
+
+ - name: Install Cython
+ run: |
+ python -m pip install --upgrade pip wheel
+ pip install Cython==3.0.2
+
+ - name: Build
+ run: |
+ cargo +stable build --verbose
+
+ - name: Build no-default-features
+ run: |
+ cargo +stable build --verbose --no-default-features
+
+ - name: Test package
+ env:
+ CBINDGEN_TEST_VERIFY: 1
+ run: |
+ cargo +stable package --verbose
+ (cd target/package/cbindgen-$(cargo +stable run -- --version | cut -d ' ' -f 2) && cargo +stable test --verbose)
+
+ - name: Install nightly Rust
+ uses: dtolnay/rust-toolchain@nightly
+
+ - name: Test
+ env:
+ CBINDGEN_TEST_VERIFY: 1
+ run: |
+ cargo +nightly test --verbose
+
+ - name: Test minimal-versions
+ run: |
+ cargo +nightly update -Zminimal-versions
+ cargo +nightly test