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

Add Github Actions CI for Nix #16

Merged
merged 2 commits into from
Feb 28, 2023
Merged

Add Github Actions CI for Nix #16

merged 2 commits into from
Feb 28, 2023

Conversation

srid
Copy link
Member

@srid srid commented Feb 27, 2023

To merge into #14

I'm using my personal cachix (https://srid-nammayatri.cachix.org/) cache for now (pushing manually from laptop), but eventually once @vimalkumar or somebody else creates the official nammayatri cache, we should switch to it (at which point, the CI can push to cachix automatically).

Regardless, we still need to manually push (made convenient via the flake app, run as nix run .#cachix) from macOS machines because Github Actions has no1 ARM macOS builder: actions/runner-images#2187

Footnotes

  1. Instead of waiting for Microsoft to implement this, we could as well switch to either Jenkins or Hercules CI.

@srid srid changed the title Add Github Actions CI for Nix #15 Add Github Actions CI for Nix Feb 27, 2023
@srid
Copy link
Member Author

srid commented Feb 27, 2023

It takes ~4mins just to download from the cache1. After that, the build is relatively fast (no need to build dependencies and -- if the PR has not changed the package or the dependencies -- many of the local packages as well).

Footnotes

  1. This is something we could entirely avoid using the Hercules CI or Jenkins SSH slave route, due to /nix store being persistent across CI runs.

- Docker image is built only on 'main' branch
- Docker image is pushed only when on 'main' branch, and working copy is
  clean.
@srid srid mentioned this pull request Feb 28, 2023
16 tasks
@srid srid merged commit 2aedbb6 into ghc810--nixify Feb 28, 2023
@srid srid deleted the ghc810--nixify--ci2 branch February 28, 2023 00:09
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.

None yet

1 participant