25 lines
615 B
YAML
Raw Normal View History

2021-03-29 21:14:30 +05:30
name: ci
on:
push:
2021-05-02 03:26:12 +05:30
branches: [main]
2021-03-29 21:14:30 +05:30
pull_request:
jobs:
ci:
2021-05-02 03:26:12 +05:30
name: ci-${{ matrix.os }}
2021-03-29 21:14:30 +05:30
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
2021-03-29 21:14:30 +05:30
steps:
- uses: actions/checkout@v2
- uses: actions-rs/install@v0.1
if: ${{ matrix.os == 'windows-latest' }}
with:
crate: cargo-audit
version: latest
- uses: cachix/install-nix-action@v12
if: ${{ matrix.os != 'windows-latest' }}
with:
2021-05-07 13:04:44 +05:30
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/20.09.tar.gz
- run: make test