Merge pull request #107 from akirak/renovate/actions #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check zig | |
on: | |
push: | |
paths: | |
# Set this to the directory of the template | |
- zig/** | |
- .github/workflows/check-zig.yml | |
workflow_dispatch: | |
workflow_call: | |
concurrency: | |
group: check-zig-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30 | |
with: | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
flake-registry = https://raw.githubusercontent.com/akirak/flake-pins/master/registry.json | |
- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15 | |
with: | |
name: akirak | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
pushFilter: '-source$' | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
path: ./tmp | |
- name: Use the template | |
run: | | |
nix flake new -t ./tmp#zig work | |
- run: nix develop -c zig version | |
working-directory: work |