Skip to content

Commit

Permalink
Replace xtask with justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ajeetdsouza committed May 5, 2023
1 parent a7c8231 commit c8fb2f2
Show file tree
Hide file tree
Showing 9 changed files with 173 additions and 431 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,22 @@ jobs:
- uses: actions-rs/toolchain@v1
if: ${{ matrix.os == 'windows-latest' }}
with:
components: clippy
profile: minimal
toolchain: stable
components: rustfmt, clippy

- uses: actions-rs/toolchain@v1
if: ${{ matrix.os == 'windows-latest' }}
with:
components: rustfmt
profile: minimal
override: true
toolchain: nightly

- uses: cachix/install-nix-action@v20
if: ${{ matrix.os != 'windows-latest' }}
with:
nix_path: nixpkgs=channel:nixos-unstable

- uses: cachix/cachix-action@v12
if: ${{ matrix.os != 'windows-latest' && env.CACHIX_AUTH_TOKEN != '' }}
with:
Expand All @@ -45,7 +53,13 @@ jobs:
with:
key: ${{ matrix.os }}

- 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' }}
- name: Install just
uses: taiki-e/install-action@v2
with:
tool: just

- name: Run lints
run: just lint

- name: Run tests
run: just test
Loading

0 comments on commit c8fb2f2

Please sign in to comment.