Files
read_aconity_layers/.github/workflows/rust.yaml
2024-11-14 18:34:18 +00:00

37 lines
688 B
YAML

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build-rust:
name: Build rust library for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Install Act dependencies
if: ${{ env.ACT }}
run: |
apt-get update && apt-get install sudo -y cargo
- name: Build
with:
python-version: "3.12"
run: cargo build --verbose
- name: Run tests
with:
python-version: "3.12"
run: cargo test --verbose