2021-03-29 15:44:30 +00:00
|
|
|
name: ci
|
|
|
|
on:
|
|
|
|
push:
|
2021-05-01 21:56:12 +00:00
|
|
|
branches: [main]
|
2021-03-29 15:44:30 +00:00
|
|
|
pull_request:
|
|
|
|
jobs:
|
|
|
|
ci:
|
2021-05-01 21:56:12 +00:00
|
|
|
name: ci-${{ matrix.os }}
|
2021-03-29 15:44:30 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-04-05 06:31:24 +00:00
|
|
|
os: [ubuntu-latest, windows-latest]
|
2021-03-29 15:44:30 +00:00
|
|
|
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=channel:nixos-stable
|
2021-04-05 06:31:24 +00:00
|
|
|
- run: mkdir -p /tmp/home && make test
|
|
|
|
env:
|
|
|
|
HOME: /tmp/home
|