-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (45 loc) · 1.54 KB
/
actions.yml
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
name: iOS Rust Build & Unit Test
on:
pull_request:
push:
branches:
- master
- stable
jobs:
check:
name: Check
runs-on: macos-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
fetch-depth: 50
- name: Checkout submodules
shell: bash
run: git submodule update --init --recursive
- name: Install stable toolchain
uses: actions-rs/toolchain@v1.0.5
with:
toolchain: stable
profile: minimal
override: true
- name: Cache cargo index
uses: actions/cache@v1.1.2
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
- name: Cache sccache MacOS
uses: actions/cache@v1.1.2
with:
path: "/Users/runner/Library/Caches/Mozilla.sccache"
key: ${{ runner.os }}-sccache-build-tests-${{ hashFiles('**/Cargo.lock') }}
- name: Install sccache for MacOS
shell: pwsh
run: pwsh scripts/actions/install-sccache.ps1 ${{ runner.os}}
- name: Rust Unit Test
run: |
cd ./rust/jolocom_native_utils
cargo test
- name: Stop sccache
if: always()
run: sccache --stop-server