Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: migrate to flakehub cache action #431

Merged
merged 2 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/actions/build-package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ runs:
- uses: DeterminateSystems/nix-installer-action@v16
with:
determinate: true
- uses: DeterminateSystems/magic-nix-cache-action@v8
- uses: DeterminateSystems/flakehub-cache-action@v1
- name: Building 👷 ${{ inputs.package }} 📦
shell: bash
run: |
Expand All @@ -25,7 +25,3 @@ runs:
echo "✅ License found, building normally"
nix build .#${{ inputs.package }} -L
fi
- uses: "DeterminateSystems/flakehub-push@v5"
with:
include-output-paths: true
visibility: "public"
1 change: 0 additions & 1 deletion .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
- defold
- heynote
- hyprpicker
- ollama
- open-webui
- station
- gotosocial
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/build-servers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ jobs:
fi
done
nix build .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel -L
- uses: "DeterminateSystems/flakehub-push@v5"
with:
include-output-paths: true
visibility: "public"

build-home:
runs-on: ubuntu-22.04
Expand All @@ -55,7 +51,7 @@ jobs:
- uses: DeterminateSystems/nix-installer-action@v16
with:
determinate: true
- uses: DeterminateSystems/magic-nix-cache-action@v8
- uses: DeterminateSystems/flakehub-cache-action@v1
- name: Building 👷 ${{ matrix.home }} 🏠
run: |
# Disable non-redist packages
Expand All @@ -66,7 +62,3 @@ jobs:
fi
done
nix run nixpkgs#home-manager -- build --flake .#${{ matrix.home }} -L
- uses: "DeterminateSystems/flakehub-push@v5"
with:
include-output-paths: true
visibility: "public"
4 changes: 0 additions & 4 deletions .github/workflows/build-vms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,3 @@ jobs:
- name: Building 👷 ${{ matrix.home }} 🏚️
run: |
nix run nixpkgs#home-manager -- build --flake .#${{ matrix.home }} -L
- uses: "DeterminateSystems/flakehub-push@v5"
with:
include-output-paths: true
visibility: "public"
8 changes: 0 additions & 8 deletions .github/workflows/build-workstations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ jobs:
fi
done
nix build .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel -L
- uses: "DeterminateSystems/flakehub-push@v5"
with:
include-output-paths: true
visibility: "public"

build-home:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -66,7 +62,3 @@ jobs:
fi
done
nix run nixpkgs#home-manager -- build --flake .#${{ matrix.home }} -L
- uses: "DeterminateSystems/flakehub-push@v5"
with:
include-output-paths: true
visibility: "public"
2 changes: 1 addition & 1 deletion .github/workflows/flake-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
- uses: DeterminateSystems/nix-installer-action@v16
with:
determinate: true
- uses: DeterminateSystems/magic-nix-cache-action@v8
- uses: DeterminateSystems/flakehub-cache-action@v1
- uses: DeterminateSystems/flake-checker-action@v9
2 changes: 1 addition & 1 deletion .github/workflows/lock-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: DeterminateSystems/nix-installer-action@v16
with:
determinate: true
- uses: DeterminateSystems/magic-nix-cache-action@v8
- uses: DeterminateSystems/flakehub-cache-action@v1
- uses: DeterminateSystems/update-flake-lock@v24
with:
pr-title: "chore: update flake.lock"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Dual boot systems have the NixOS install named a Sith Lord and the *"other"* OS

- [.github]: GitHub CI/CD workflows Nix ❄️ supercharged ⚡️ by [**Determinate Systems**](https://determinate.systems)
- [Nix Installer Action](https://github.com/marketplace/actions/the-determinate-nix-installer)
- [Magic Nix Cache Action](https://github.com/marketplace/actions/magic-nix-cache)
- [FlakeHub Cache Action](https://github.com/marketplace/actions/flakehub-cache)
- [Flake Checker Action](https://github.com/marketplace/actions/nix-flake-checker)
- [Update Flake Lock Action](https://github.com/marketplace/actions/update-flake-lock)
- [darwin]: macOS configurations
Expand Down
2 changes: 1 addition & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
catppuccin.url = "https://flakehub.com/f/catppuccin/nix/*";
catppuccin-vsc.url = "https://flakehub.com/f/catppuccin/vscode/*";
catppuccin-vsc.inputs.nixpkgs.follows = "nixpkgs";
disko.url = "https://flakehub.com/f/nix-community/disko/1.10.0.tar.gz";
disko.url = "https://flakehub.com/f/nix-community/disko/1.11.0.tar.gz";
disko.inputs.nixpkgs.follows = "nixpkgs";
nixos-hardware.url = "https://flakehub.com/f/NixOS/nixos-hardware/*";
nixos-needsreboot.url = "https://codeberg.org/Mynacol/nixos-needsreboot/archive/0.2.2.tar.gz";
Expand Down
Loading