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:
|
2023-09-04 15:12:43 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-06-05 15:24:41 +03:00
|
|
|
- name: Set up cargo cache
|
2024-01-22 00:13:26 +00:00
|
|
|
uses: actions/cache@v4
|
2023-06-05 15:24:41 +03:00
|
|
|
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'
|
2024-02-27 03:01:29 +02:00
|
|
|
# run: cargo test --verbose --no-default-features --features dotnet
|