Skip to content

Nix build and cachix push workflow#4

Draft
Xpirix wants to merge 1 commit intomasterfrom
nix_build_cachix_push
Draft

Nix build and cachix push workflow#4
Xpirix wants to merge 1 commit intomasterfrom
nix_build_cachix_push

Conversation

@Xpirix
Copy link
Copy Markdown
Owner

@Xpirix Xpirix commented Dec 4, 2025

Description

This workflow will push the Nix QGIS build to cachix, so LTR and Latest will not build from source anymore. This will require:

  1. Sign up to cachix and log in
  2. Go to "Caches" tab and click on "New Cache"
  3. Fill the form the following:
  • Unique name: qgis
  • Visibility: Public
  • Signing: Managed by Cachix
  1. Once cache is created, click on it and go to "Settings > Auth Tokens"
  2. Create auth token with "Write+Read" permissions and no expiration
  3. Copy the token to clipboard and create a secret in https://github.com/qgis/QGIS Github account (Settings > Secrets > Actions) called CACHIX_AUTH_TOKEN with the token as the value.
  4. Copy the cache Public Key from Cachix and update flake.nix.
  5. Create the PR in the upstream repo

Cc @timlinux

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 4, 2025

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit dd6dc7e)

- name: Run flake Checks
run: nix flake check

- name: Build with Nix
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be needed because the nix flake check will do this step.

authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}

- name: Run flake Checks
run: nix flake check
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nix flake check is building all outputs and packages is one of them.

- name: Set up Nix
uses: cachix/install-nix-action@v31

- uses: cachix/cachix-action@v16
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cachix has a post job that will push to cachix.

@Xpirix Xpirix force-pushed the nix_build_cachix_push branch from dd6dc7e to d392aa3 Compare December 9, 2025 08:01
@Xpirix Xpirix closed this Dec 9, 2025
@Xpirix Xpirix reopened this Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant