Skip to content

Merge pull request #38 from UM-Applied-Algorithms-Lab/version-0.2.2 #184

Merge pull request #38 from UM-Applied-Algorithms-Lab/version-0.2.2

Merge pull request #38 from UM-Applied-Algorithms-Lab/version-0.2.2 #184

Workflow file for this run

name: CI Build and Test
on: [push, pull_request]
env:
RUST_BACKTRACE: full
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-13, macos-14]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- run: cargo build --release
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: binary-${{ matrix.os }}
path: target/release/libawry.rlib
test:
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-13, macos-14]
steps:
- uses: actions/checkout@v2
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: binary-${{ matrix.os }}
path: target/release/
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- run: cargo test