mirror of
https://github.com/Cian-H/read_aconity_layers.git
synced 2025-12-22 18:31:56 +00:00
37 lines
688 B
YAML
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
|
|
|