Skip to content

Commit

Permalink
feat: update GitHub workflows to improve structure and add flake checks
Browse files Browse the repository at this point in the history
  • Loading branch information
yousiki committed Nov 18, 2024
1 parent 92440c7 commit b2467ac
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-nano.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- workflow_dispatch
jobs:
call-workflow-passing-data:
uses: ./.github/workflows/build-macos.yaml
uses: ./.github/workflows/templates/build-macos.yaml
with:
hostname: nano
secrets: inherit
18 changes: 12 additions & 6 deletions .github/workflows/deadnix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ jobs:
name: Deadnix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v15
- name: Checkout repository
uses: actions/checkout@v4
- name: Check flake.lock file
uses: DeterminateSystems/flake-checker-action@main
- name: Install nix and flakes
uses: DeterminateSystems/nix-installer-action@main
- name: Use magic nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Use cachix nix cache
uses: cachix/cachix-action@master
with:
name: deadnix
- uses: astro/deadnix-action@main
- name: Run deadnix
uses: astro/deadnix-action@main
with:
commit_message: "chore: remove dead code"
18 changes: 12 additions & 6 deletions .github/workflows/statix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ jobs:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v15
- name: Checkout repository
uses: actions/checkout@v4
- name: Check flake.lock file
uses: DeterminateSystems/flake-checker-action@main
- name: Install nix and flakes
uses: DeterminateSystems/nix-installer-action@main
- name: Use magic nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Use cachix nix cache
uses: cachix/cachix-action@master
with:
name: statix
- uses: jocelynthode/statix-action@master
- name: Run statix
uses: jocelynthode/statix-action@master
File renamed without changes.
File renamed without changes.

0 comments on commit b2467ac

Please sign in to comment.