Skip to content

build(deps): bump DeterminateSystems/magic-nix-cache-action from 6 to 7 in /.github/workflows #48

build(deps): bump DeterminateSystems/magic-nix-cache-action from 6 to 7 in /.github/workflows

build(deps): bump DeterminateSystems/magic-nix-cache-action from 6 to 7 in /.github/workflows #48

Workflow file for this run

name: Completions
concurrency: shell-files
on:
push:
paths:
- '**.nix'
- Cargo.*
- flake.lock
- src/arguments.rs
- src/unit.rs
pull_request:
workflow_dispatch:
jobs:
hsize:
name: hsize
runs-on: ubuntu-22.04
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v11
with:
extra-conf: |
log-lines = 500
- name: Set up Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v7
- name: Set up build cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: build-${{ runner.os }}-${{ hashFiles('Cargo.toml') }}-${{ hashFiles('flake.nix') }}-${{ hashFiles('**.lock') }}
- name: Build with all features
run: nix develop -c cargo b --all-features
- name: Set up directory
run: |
rm -rf completions
mkdir completions
- name: Generate bash completions
run: ./target/debug/hsize g c -s bash > completions/hsize.bash
- name: Generate fish completions
run: ./target/debug/hsize g c -s fish > completions/hsize.fish
- name: Generate zsh completions
run: ./target/debug/hsize g c -s zsh > completions/hsize.zsh
- name: Update repository
run: git pull
- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore(cli): update shell completions"