-
Notifications
You must be signed in to change notification settings - Fork 15
48 lines (48 loc) · 1.41 KB
/
pr-tests.yaml
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
name: Test PR
on:
pull_request:
branches:
- "master"
paths-ignore:
- .github/workflows/charts-*
- charts/**
- .release-please-manifest.json
- release-please-config.json
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pr-tests:
strategy:
matrix:
os: ['ubuntu-22.04', 'macos-14', 'macos-13']
features: ['', 'testnet']
name: Run cargo tests
runs-on: ${{ matrix.os }}
permissions:
contents: read
checks: write
security-events: write
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: awalsh128/cache-apt-pkgs-action@latest
if: runner.os == 'Linux'
with:
packages: libsecp256k1-dev libsodium-dev liblz4-dev
- uses: arduino/setup-protoc@v3
if: runner.os == 'Linux'
- run: brew install secp256k1 libsodium lz4 protobuf
if: runner.os == 'macOS'
- uses: mozilla-actions/[email protected]
- run: cargo test --no-fail-fast --features "${{ matrix.features }}"
env:
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
CMAKE_C_COMPILER_LAUNCHER: "sccache"
CMAKE_CXX_COMPILER_LAUNCHER: "sccache"