46 lines
973 B
YAML
Raw Normal View History

2023-06-03 18:15:57 +03:00
name: Rust
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
build:
2023-06-03 18:18:40 +03:00
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
2023-06-03 18:15:57 +03:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2023-06-05 15:24:41 +03:00
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
2023-06-03 18:15:57 +03:00
- name: Build
2023-06-05 15:17:52 +03:00
run: cargo build --verbose
- name: Run tests - frida
run: cargo test --verbose
# - name: Run tests - frida
2023-06-05 15:24:41 +03:00
# if: runner.os == 'windows-latest'
2023-06-05 15:17:52 +03:00
# run: cargo test --verbose --no-default-features --features managed_lib