docs: update API examples with new handle parameter #117
Workflow file for this run
This file contains hidden or 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: Release Rust Crates | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: [ master, develop ] | |
| paths: | |
| - '.github/workflows/release-rust.yml' | |
| - 'source/ports/rs_port/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
| jobs: | |
| test: | |
| name: Rust Port Tests | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install MetaCall Unix | |
| if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' | |
| run: curl -sL https://raw.githubusercontent.com/metacall/install/master/install.sh | sh -s -- --debug | |
| - name: Install MetaCall Windows | |
| if: matrix.os == 'windows-latest' | |
| run: powershell -NoProfile -ExecutionPolicy Unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/metacall/install/master/install.ps1')))" | |
| - name: Install Rust | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| override: true | |
| - name: Build the Rust Port | |
| working-directory: source/ports/rs_port | |
| run: cargo build --verbose | |
| - name: Test the Rust Port | |
| working-directory: source/ports/rs_port | |
| env: | |
| RUST_BACKTRACE: full | |
| run: cargo test --verbose | |
| release: | |
| name: Release Rust Port | |
| runs-on: ubuntu-latest | |
| needs: test | |
| if: ${{ github.event_name != 'pull_request' }} | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Release the Rust Port | |
| working-directory: source/ports/rs_port | |
| run: ./upload.sh |