Skip to content

Commit

Permalink
Merge pull request #132 from b-rodrigues/nix_cache
Browse files Browse the repository at this point in the history
added nix magic cache
  • Loading branch information
b-rodrigues authored Feb 3, 2024
2 parents d077ffa + 67475ad commit 2ba46e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Run `nix-build ./inst/extdata/default.nix`
run: |
nix-build ./inst/extdata/default.nix
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tests-r-via-nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: devtools::test() via nix-shell
run: nix-shell --pure -p cacert nix R rPackages.covr rPackages.codetools rPackages.xml2 rPackages.sys rPackages.devtools --run "Rscript -e 'devtools::test()'"
Expand Down

0 comments on commit 2ba46e3

Please sign in to comment.