Workaround hanging Swift test in CI #256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |