mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-11-29 07:53:55 +00:00
36 lines
996 B
YAML
36 lines
996 B
YAML
name: ci
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
jobs:
|
|
ci:
|
|
name: ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
# FIXME: Enable macos-latest when this is merged: https://nixpk.gs/pr-tracker.html?pr=163924
|
|
os: [ubuntu-latest, windows-latest]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- 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@v15
|
|
if: ${{ matrix.os != 'windows-latest' }}
|
|
with:
|
|
nix_path: nixpkgs=channel:nixpkgs-unstable
|
|
|
|
- run: cargo xtask ci
|
|
if: ${{ matrix.os == 'windows-latest' }}
|
|
- run: nix-shell --cores 0 --pure --run 'rm -rf ~/.cargo/bin; cargo xtask ci'
|
|
if: ${{ matrix.os != 'windows-latest' }}
|