forked from mozilla/uniffi-rs
-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (31 loc) · 947 Bytes
/
tests.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
name: tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-22.04
container:
image: ghcr.io/nordsecurity/uniffi-rs-test-runner:v0.0.2
options: --user root
steps:
- uses: actions/checkout@v3
- name: Set rust version
run: |
rustup show
rustup update
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "v1-rust"
- name: Build
run: |
# Disable debug info, because the job runs out of disk space
RUSTFLAGS="-C debuginfo=0" cargo build
- name: Run tests
shell: bash
env:
# Github sets HOME to /github/home and breaks dependencies in Docker image..
# https://github.com/actions/runner/issues/863
HOME: /root
run: |
source ~/.bashrc
# Disable debug info, because the job runs out of disk space
RUSTFLAGS="-C debuginfo=0" cargo test