Skip to content

Commit

Permalink
chore: run test via github action
Browse files Browse the repository at this point in the history
  • Loading branch information
gregod committed Apr 15, 2024
1 parent bb13f17 commit d39ce66
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

name: Cargo Build & Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always

jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
env:
NIXPKGS_ALLOW_UNFREE: 1 # required to get gurobi
strategy:
matrix:
toolchain:
- nightly
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-23.11
- run: nix-shell --run "rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}"
- run: nix-shell --run "cargo build --verbose"
# TODO: github runner is missing gurobi license required for tests
# - run: nix-shell --run "cargo test --verbose"

0 comments on commit d39ce66

Please sign in to comment.