add test folder to crate to be able to run tests on crate #256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: darwin | |
on: | |
pull_request: | |
branches: [ release, development ] | |
paths-ignore: | |
- '**.md' | |
merge_group: | |
jobs: | |
build: | |
runs-on: "macos-14" | |
steps: | |
- name: "checkout repo" | |
uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: "Install Rust" | |
uses: dtolnay/rust-toolchain@stable | |
- name: "Install Rust (ARM)" | |
shell: bash | |
run: "rustup target add aarch64-apple-darwin" | |
- name: "Install Rust Intel" | |
shell: bash | |
run: "rustup target add x86_64-apple-darwin" | |
- name: "Build (Intel)" | |
shell: bash | |
run: | | |
examples=("long_running" "nested_shell" "nested_shell_async" "simple_ls_chan" "simple_ls_rw" "smux") | |
for example in "${examples[@]}"; do | |
cargo build --target x86_64-apple-darwin --example "$example" | |
done | |
- name: "Build (ARM)" | |
shell: bash | |
run: | | |
examples=("long_running" "nested_shell" "nested_shell_async" "simple_ls_chan" "simple_ls_rw" "smux") | |
for example in "${examples[@]}"; do | |
cargo build --target aarch64-apple-darwin --example "$example" | |
done |