Skip to content

test

test #8

Workflow file for this run

name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
CSPICE_DIR: $GITHUB_WORKSPACE/cspice
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache CSPICE
id: cache-cspice
uses: actions/cache@v3
with:
path: $GITHUB_WORKSPACE/cspice
key: cspice-install
- name: Download CSPICE
if: steps.cache-cspice.outputs.cache-hit != 'true'
run:
wget https://naif.jpl.nasa.gov/pub/naif/toolkit/C/PC_Linux_GCC_64bit/packages/cspice.tar.Z &&
gzip -d cspice.tar.Z &&
tar xf cspice.tar &&
mv cspice/lib/cspice.a cspice/lib/libcspice.a
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose -- --nocapture