Skip to content

Commit

Permalink
disable unneeded stuff for now
Browse files Browse the repository at this point in the history
  • Loading branch information
xxshady committed Jan 21, 2025
1 parent ad49fe4 commit 8588b3b
Showing 1 changed file with 53 additions and 53 deletions.
106 changes: 53 additions & 53 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: "*"

env:
RUSTFLAGS: -Dwarnings
# RUSTFLAGS: -Dwarnings
RUST_BACKTRACE: 1

jobs:
Expand All @@ -26,67 +26,67 @@ jobs:
- name: rust version
run: rustc -V

- name: cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# - name: cache
# uses: actions/cache@v3
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# target/
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: build workspace without default features
run: cargo build --workspace --no-default-features
# - name: build workspace without default features
# run: cargo build --workspace --no-default-features

# doesn't work due to multiple identical symbol exports (main fn and before_unload) in test module
# - name: build workspace with all features
# run: cargo build --workspace --all-features
- name: check workspace with all features
run: cargo check --workspace --all-features
# # doesn't work due to multiple identical symbol exports (main fn and before_unload) in test module
# # - name: build workspace with all features
# # run: cargo build --workspace --all-features
# - name: check workspace with all features
# run: cargo check --workspace --all-features

- name: clippy
run: cargo clippy --workspace
# - name: clippy
# run: cargo clippy --workspace

- name: check examples
run: |
cd examples/template
# - name: check examples
# run: |
# cd examples/template

cargo add relib_module --path ../../module --package module
cargo add relib_host --path ../../host --package host
cargo rm relib_interface --package host
cargo rm relib_interface --package host --build
cargo add relib_interface --path ../../interface --package host --features include
cargo add relib_interface --path ../../interface --package host --features build --build
cargo rm relib_interface --package module
cargo rm relib_interface --package module --build
cargo add relib_interface --path ../../interface --package module --features include
cargo add relib_interface --path ../../interface --package module --features build --build
cargo build --workspace
cargo clippy --workspace
cargo build --workspace --features unloading
cargo clippy --workspace --features unloading
# cargo add relib_module --path ../../module --package module
# cargo add relib_host --path ../../host --package host
# cargo rm relib_interface --package host
# cargo rm relib_interface --package host --build
# cargo add relib_interface --path ../../interface --package host --features include
# cargo add relib_interface --path ../../interface --package host --features build --build
# cargo rm relib_interface --package module
# cargo rm relib_interface --package module --build
# cargo add relib_interface --path ../../interface --package module --features include
# cargo add relib_interface --path ../../interface --package module --features build --build
# cargo build --workspace
# cargo clippy --workspace
# cargo build --workspace --features unloading
# cargo clippy --workspace --features unloading

cd ../abi_stable_usage
cargo build --workspace
cargo clippy --workspace
cargo build --workspace --features unloading
cargo clippy --workspace --features unloading
# cd ../abi_stable_usage
# cargo build --workspace
# cargo clippy --workspace
# cargo build --workspace --features unloading
# cargo clippy --workspace --features unloading

cd ../custom_global_alloc
cargo build --workspace
cargo clippy --workspace
cargo build --workspace --features unloading
cargo clippy --workspace --features unloading
# cd ../custom_global_alloc
# cargo build --workspace
# cargo clippy --workspace
# cargo build --workspace --features unloading
# cargo clippy --workspace --features unloading

cd ../live_reload
cargo build --workspace
cargo clippy --workspace
# cd ../live_reload
# cargo build --workspace
# cargo clippy --workspace

cd ../export_main_macro
cargo build --workspace
cargo clippy --workspace
# cd ../export_main_macro
# cargo build --workspace
# cargo clippy --workspace

- name: test runner
run: cargo run --bin test_runner

0 comments on commit 8588b3b

Please sign in to comment.