This repository has been archived by the owner on Nov 19, 2023. It is now read-only.
Update README about archival #24
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: test | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
run: sudo add-apt-repository ppa:monado-xr/monado && sudo apt-get update && sudo apt-get install make openjdk-11-jre g++ libudev-dev libasound2-dev gcc libopenxr-loader1 | |
- uses: actions/checkout@v2 | |
- name: Cache Cargo registry | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cargo/registry | |
key: ${{ matrix.build }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ matrix.build }}-cargo-registry- | |
- name: Cache Cargo index | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cargo/git | |
key: ${{ matrix.build }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ matrix.build }}-cargo-index- | |
- name: Cache Cargo build | |
uses: actions/cache@v2 | |
with: | |
path: target | |
key: ${{ matrix.build }}-target-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ matrix.build }}-target- | |
- name: Download dependencies | |
run: make download_dependencies | |
- name: Run tests | |
run: cargo test | |
test-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache Cargo registry | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cargo/registry | |
key: ${{ matrix.build }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ matrix.build }}-cargo-registry- | |
- name: Cache Cargo index | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cargo/git | |
key: ${{ matrix.build }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ matrix.build }}-cargo-index- | |
- name: Cache Cargo build | |
uses: actions/cache@v2 | |
with: | |
path: target | |
key: ${{ matrix.build }}-target-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ matrix.build }}-target- | |
- name: Download dependencies | |
run: .\scripts\install_dependencies.bat | |
- name: Run tests | |
run: cargo test |