Bump actions/github-script from 6 to 7 #208
Workflow file for this run
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: net | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'README.md' | |
- 'COPYRIGHT' | |
- 'LICENSE*' | |
- '**.md' | |
- '**.txt' | |
- 'art' | |
pull_request: | |
paths-ignore: | |
- 'README.md' | |
- 'COPYRIGHT' | |
- 'LICENSE*' | |
- '**.md' | |
- '**.txt' | |
- 'art' | |
workflow_dispatch: | |
jobs: | |
test: | |
name: ${{ matrix.os }} - ${{ matrix.runtime }} - ${{ matrix.stream_layer }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
# - macos-latest, | |
# - windows-latest | |
runtime: [tokio, async-std, smol] | |
stream_layer: [tls, native-tls, tcp] | |
# TODO: remove this exlucde when figuring out why native-tls with smol leads to a user_data* unit tests failure | |
exclude: | |
- runtime: smol | |
stream_layer: native-tls | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
run: | | |
rustup update stable && rustup default stable | |
rustup component add clippy | |
rustup component add rustfmt | |
- name: Install OpenSSL (Windows) | |
if: matrix.os == 'windows-latest' | |
shell: powershell | |
run: | | |
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append | |
vcpkg install openssl:x64-windows-static-md | |
- name: Setup loopback interface (Windows) | |
if: matrix.os == 'windows-latest' | |
shell: powershell | |
run: ci\setup_subnet_windows.ps1 | |
- name: Setup loopback interface (MacOS) | |
if: matrix.os == 'macos-latest' | |
run: ci/setup_subnet_macos.sh | |
- name: Setup loopback interface (Ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
run: ci/setup_subnet_ubuntu.sh | |
- name: Run Transport Tests | |
run: | | |
cargo test --no-default-features --features "test,${{ matrix.stream_layer }},${{ matrix.runtime }}" | |
working-directory: transports/net | |
- name: Run Memberlist Tests | |
run: | | |
cargo test --no-default-features --features "test,compression,encryption,${{ matrix.stream_layer }},${{ matrix.runtime }},metrics" -- --test-threads=1 | |
working-directory: memberlist | |
- name: Cache Cargo registry | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.runtime }}-${{ matrix.stream_layer }} |