Skip to content

Commit

Permalink
test: Use azuwis/actions/nix@main
Browse files Browse the repository at this point in the history
  • Loading branch information
azuwis committed Jan 7, 2024
1 parent b5f8c68 commit b737c26
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,17 @@ jobs:
shell: [shell, shell-bin]
runs-on: ${{ matrix.os }}
steps:
- name: Skip run if debug enabled and job not matched
- name: Skip debug
if: >-
${{ github.event_name == 'workflow_dispatch' && inputs.debug && !
((inputs.os == 'all' || inputs.os == matrix.os) && matrix.shell == 'shell')
}}
run: exit 1
- uses: actions/checkout@v3
- uses: azuwis/nix-action@main
- uses: azuwis/actions/nix@main
with:
key: pianotrans-${{ matrix.shell }}-${{ hashFiles('flake.*', 'nix/**') }}
key: nix-${{ matrix.shell }}-${{ hashFiles('flake.*', 'nix/**') }}
debug: ${{ github.event_name == 'workflow_dispatch' && inputs.debug }}
credential: ${{ secrets.TTYD_CREDENTIAL }}
- uses: cachix/cachix-action@v12
with:
name: azuwis
Expand All @@ -58,4 +57,4 @@ jobs:
run: |
nix -L develop .#${{ matrix.shell }} --command ./PianoTrans.py --cli test/cut_liszt.opus test/cut_liszt.opus test/cut_liszt.opus
test -e test/cut_liszt.opus.mid
- uses: azuwis/nix-action@post
- uses: azuwis/actions/nix/post@main

0 comments on commit b737c26

Please sign in to comment.