mirror of
https://github.com/Hopiu/zoxide.git
synced 2026-04-05 07:41:02 +00:00
32 lines
878 B
YAML
32 lines
878 B
YAML
name: ci
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
jobs:
|
|
ci:
|
|
name: ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
if: ${{ matrix.os == 'windows-latest' }}
|
|
with:
|
|
toolchain: stable
|
|
components: rustfmt, clippy
|
|
profile: minimal
|
|
override: true
|
|
- 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
|
|
if: ${{ matrix.os == 'windows-latest' }}
|
|
- run: nix-shell --cores 0 --pure --run 'cargo xtask ci'
|
|
if: ${{ matrix.os != 'windows-latest' }}
|