Skip to content

add test folder to crate to be able to run tests on crate #256

add test folder to crate to be able to run tests on crate

add test folder to crate to be able to run tests on crate #256

Workflow file for this run

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