Skip to content

feat(csharp): Implement remaining functions in 1.0 spec (#1773) #3

feat(csharp): Implement remaining functions in 1.0 spec (#1773)

feat(csharp): Implement remaining functions in 1.0 spec (#1773) #3

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: Rust
on:
pull_request:
branches:
- main
paths:
- "rust/**"
- ".github/workflows/rust.yml"
push:
paths:
- "rust/**"
- ".github/workflows/rust.yml"
concurrency:
group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
permissions:
contents: read
defaults:
run:
shell: bash
working-directory: rust
jobs:
rust:
strategy:
matrix:
# TODO(lidavidm): add back macos-latest once it has Cargo installed
os: [windows-latest, macos-13, ubuntu-latest]
name: "Rust ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Adead_code" # TODO(alexandreyc): remove this line when implementation is complete
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Use stable Rust
id: rust
run: |
rustup update stable
rustup default stable
VERSION=$(rustup show active-toolchain -v | tail -1 | tr -d "[:space:]")
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
rust/target/
key: ${{ runner.os }}-cargo-${{ steps.rust.outputs.version }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ steps.rust.outputs.version }}-
- name: Clippy
run: cargo clippy --workspace --all-targets --all-features -- -Dwarnings
- name: Test
run: cargo test --workspace --all-targets --all-features
- name: Doctests
run: cargo test --workspace --doc --all-features
- name: Check docs
run: cargo doc --workspace --all-features