-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (32 loc) · 1.38 KB
/
pull_request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Pull Request
on:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
env:
CARGO_REGISTRY_TOKEN: ${{secrets.CARGO_REGISTRY_TOKEN}}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: x86_64-unknown-linux-gnu
- run: git checkout -B pr_check
- run: rustup component add clippy
- run: cargo install cargo-release
- run: |
cargo build --release --manifest-path ./adana-script/dynamic_lib/example_lib_src/Cargo.toml
rm ./adana-script/dynamic_lib/libplugin_example.so
cp ./adana-script/dynamic_lib/example_lib_src/target/release/libplugin_example.so ./adana-script/dynamic_lib/libplugin_example.so
git add . && git commit -m "we need to build libpluginexample.so with the proper glibc"
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: cargo test #--verbose -- --nocapture
- run: wasm-pack test --headless --firefox ./adana-script-wasm
- run: wasm-pack test --headless --chrome ./adana-script-wasm
- run: cargo clippy --all-targets --all-features -- -D warnings
- run: cargo release --no-publish --no-tag --allow-branch pr_check --no-push --dependent-version upgrade minor
#- run: cargo publish --dry-run