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

use cache in Nix Shell Github Action #1081

Merged
merged 1 commit into from
Jun 4, 2022

Conversation

peterbecich
Copy link
Member

@peterbecich peterbecich commented May 24, 2022

Closes #1078

The caching should begin to work when a Cachix account is created and secrets.CACHIX_SIGNING_KEY and secrets.CACHIX_AUTH_TOKEN are set in GitHub done

https://nix.dev/tutorials/continuous-integration-github-actions#setting-up-github-actions

#1078 (comment)

I've had no success with trying to get simple https://github.com/actions/cache working for this.

The auth key has been set. There is nothing in the cache yet.
Per this comment
https://github.com/cachix/cachix-action#security

Pull requests do not have access to secrets so read access to a public binary cache will work, but pushing will be disabled since there is no signing key.
Note that malicious code submitted via a pull request can, once merged into master, reveal the tokens.

I expect the cache will work and the GitHub Action will be fast after this PR is merged.

@peterbecich peterbecich force-pushed the cache-nix-shell-github-action branch 13 times, most recently from 2fb8864 to 7c8b2ee Compare May 26, 2022 02:00
@peterbecich peterbecich force-pushed the cache-nix-shell-github-action branch 5 times, most recently from fcdd419 to 152ff6e Compare June 4, 2022 21:08
Squashed commit of the following:

commit be261f9005d7f0382bd28e384542e141d47c4c35
Author: Peter Becich <[email protected]>
Date:   Wed Jun 1 20:17:02 2022 -0700

    Revert "test"

    This reverts commit 678a1ed.

commit 678a1ed
Author: Peter Becich <[email protected]>
Date:   Wed Jun 1 19:47:10 2022 -0700

    test

commit 7c8b2ee
Author: Peter Becich <[email protected]>
Date:   Wed May 25 18:55:42 2022 -0700

    use Cachix in GitHub Action

commit b99b637
Author: Peter Becich <[email protected]>
Date:   Tue May 24 00:17:53 2022 -0700

    attempt to fix Github Actions caching

commit 49f09ed
Author: Peter Becich <[email protected]>
Date:   Mon May 23 19:40:27 2022 -0700

    attempt to cache `/nix` in Nix Shell Github Action

    cachix/install-nix-action#56 (comment)

commit 5a5b310
Author: Peter Becich <[email protected]>
Date:   Mon May 23 19:35:18 2022 -0700

    attempt to use cache in Nix Shell Github Action

    https://github.com/cachix/install-nix-action#how-do-i-add-a-binary-cache
@peterbecich peterbecich force-pushed the cache-nix-shell-github-action branch from 152ff6e to 0e69ed1 Compare June 4, 2022 22:33
@peterbecich peterbecich marked this pull request as ready for review June 4, 2022 22:35
@peterbecich peterbecich changed the title [WIP] use cache in Nix Shell Github Action use cache in Nix Shell Github Action Jun 4, 2022
@gbaz gbaz merged commit c2a34d7 into haskell:master Jun 4, 2022
@peterbecich peterbecich deleted the cache-nix-shell-github-action branch June 4, 2022 22:58
gbaz added a commit that referenced this pull request Jan 5, 2023
* delete unused GitHub Action; fix CI badge

* Fix #1076: separate validators from UI and doctest them (#1077)

* Cachix caching for nix-shell GitHub Action (#1081)

* Add uploaded_at field in package api (#1080)

* package page: Include virtual-modules in module tree (#1085)

* Allow hashable-1.4 and text-2.0 (#1089)

* Divide sitemap into parts

* Add sitemap link for subdirectories

* Fix `non-canonical-return` warnings

* Bump CI to GHC 9.2.3 and restrict to master branch

* Check authorisation (#1111)

* Dynamically add css piece

* Fix #1105: change order of markdown parsers to allow pipes in lists

* Fix #1128, fix #1130 by adding bounds to Cabal-syntax and haddock-library

* Bump CI to 9.2.4 and some deps

* Force .txt and .text to have UTF-8 MIME charset (#1133)

* Upgrade to haddock-library-1.11.0 (#1126)

* attempt to speed up GitHub Action for Nix Shell

* work with cabal 3.8

* Updated accepted licenses (#1092)

* Add dependabot for github workflows

* Bump cachix/cachix-action from 10 to 12

* Bump actions/checkout from 2.4.0 to 3.1.0
* Bump cachix/install-nix-action from 17 to 18

* Build with Cabal-3.8 and GHC 9.4 (#1141)

* Haskell CI: bump to Ubuntu-22.04, GHC 9.2.5 and 9.4.4

* Allow mtl-2.3 and transformers-0.6 (#1150)

* Disable test (#1124)

* allow disable tests on client side

* add deprecated version warning (#1123)

* List maintainers on package page (#1098)

* List maintainers on package page

* Vendor snowball package (#1116)

* Add searchbox metadata (#1115)

* Add captcha for user registration (#1099)

* remove filtering 00-index for cabal version < 2.0 hack (#1152)

* Add lastVersion in listings (#749) (#1140)

* rm icu dep instructions, add libgd

* Add test log display (#1100)

* Add test log

* Reverse Dependencies indexed on PackageName (#1082)

* Rebased Reverse Dependencies

* Add "Quick Jump" to candidate package page (#1122)

* Solves #1029 - Adds paging to recent packages and recent revisions (#1055)

* support for `prefers-color-scheme` (#1008)

* 2x brightness for captions and links in dark color scheme

* table dark color scheme

* prefers-color-scheme for links, footer, and table-of-contents

* paginator css for `prefers-color-scheme`

* Maintainer notifications

* cleanup partial functions for revdeps, elim use of MonadThrow, MonadCatch

* fix tests enablement link

Co-authored-by: Peter Becich <[email protected]>
Co-authored-by: Andreas Abel <[email protected]>
Co-authored-by: Hécate Moonlight <[email protected]>
Co-authored-by: Matthew Pickering <[email protected]>
Co-authored-by: ˌbodʲɪˈɡrʲim <[email protected]>
Co-authored-by: Alias Qli <[email protected]>
Co-authored-by: Ondřej Kubánek <[email protected]>
Co-authored-by: Gautier DI FOLCO <[email protected]>
Co-authored-by: Janus Troelsen <[email protected]>
Co-authored-by: Levi Butcher <[email protected]>
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.

Should the Nix CI do caching
2 participants