-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (55 loc) · 1.68 KB
/
checks.yml
File metadata and controls
64 lines (55 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Checks
on:
# workflow_call:
pull_request:
env:
RUST_TEST_TIME_INTEGRATION: "120000,300000"
RUST_BACKTRACE: 1
jobs:
check:
name: Check for ${{ matrix.binary_target }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
include:
- os: ubuntu-latest
binary_target: x86_64-unknown-linux-gnu
- os: windows-latest
binary_target: x86_64-pc-windows-msvc
- os: macos-latest
binary_target: x86_64-apple-darwin
steps:
- uses: actions/checkout@v4
- name: ⚡ Cache
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install libdbus
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install libdbus-1-dev
- name: Install musl tools
if: matrix.binary_target == 'x86_64-unknown-linux-musl'
run: sudo apt-get install musl-tools
- name: Update rust
run: |
rustup override set stable
rustup update stable
rustup target add ${{ matrix.binary_target }}
- name: Copy mock keychain
if: matrix.binary_target == 'x86_64-apple-darwin'
run: |
cp tests/fixtures/migrate/sos-mock.keychain-db $HOME/Library/Keychains/
security list-keychains -s $HOME/Library/Keychains/sos-mock.keychain-db
security list-keychains
- name: Install cargo-make
uses: taiki-e/install-action@v2
with:
tool: cargo-make,nextest
- name: Run tests
run: |
cargo make ci