zoxide/.github/workflows/ci.yml
2021-10-12 01:35:24 +05:30

25 lines
634 B
YAML

name: ci
on:
push:
branches: [main]
pull_request:
jobs:
ci:
name: ci-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
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:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/20.09.tar.gz
- run: cargo xtask ci