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

2023 08 29 flake #97

Merged
merged 7 commits into from
Sep 18, 2023
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
29 changes: 17 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,28 @@ on:
- develop
pull_request: {}

env:
HOLOCHAIN_REPO: "/var/tmp/holochain_repo"
CACHIX_REV: "v1.2"

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
script: ["./test.sh", "./bench.sh"]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
/nix/store
key: nix-store-${{ hashFiles('default.nix') }}-${{ hashFiles('config.nix') }}-${{ hashFiles('nix') }}
- uses: cachix/install-nix-action@v12
- uses: actions/checkout@v3
- name: Install nix
uses: cachix/install-nix-action@v20
- name: Setup cachix
uses: cachix/cachix-action@v12
if: ${{ ! contains(matrix.platform.runs-on, 'self-hosted') }}
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
substituters = https://cache.nixos.org/ https://cache.holo.host/
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.holo.host-1:lNXIXtJgS9Iuw4Cu6X0HINLu9sTfcjEntnrgwMQIMcE= cache.holo.host-2:ZJCkX3AUYZ8soxTLfTb60g+F3MkWD7hkH9y8CgqwhDQ=
- run: nix-shell --fallback --run ${{ matrix.script }}
name: holochain-ci
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
installCommand: |
nix-env -if https://github.com/cachix/cachix/tarball/${CACHIX_REV} \
Copy link
Member

Choose a reason for hiding this comment

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

@steveej do you know what this check is for? Is it still necessary? We do it in Holochain but I don't know why

Copy link
Member

Choose a reason for hiding this comment

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

we needed a bugfix in cachix before it came fully trough their release pipeline. can be removed now.

--substituters 'https://cache.nixos.org https://cachix.cachix.org' \
--trusted-public-keys 'cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY='
- run: nix develop --command ${{ matrix.script }}
Loading
Loading