Skip to content

Commit

Permalink
Fixed sweettest
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Jun 4, 2024
1 parent 8b1e283 commit 7dd78a6
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 94 deletions.
41 changes: 11 additions & 30 deletions .github/workflows/test-nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ on:

jobs:
linux-build-and-cache:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

Expand All @@ -22,6 +26,12 @@ jobs:
with:
name: holochain-ci

- name: Test flake
env:
CACHIX_AUTH_TOKEN: "${{ secrets.CACHIX_TOKEN_HOLOCHAIN_OPEN_DEV }}"
run: |
cachix watch-exec holochain-open-dev -- nix flake check -L
- name: Build zomes
env:
CACHIX_AUTH_TOKEN: "${{ secrets.CACHIX_TOKEN_HOLOCHAIN_OPEN_DEV }}"
Expand All @@ -37,32 +47,3 @@ jobs:
run: |
cd ./nix/fixtures/module-repo
cachix watch-exec holochain-open-dev -- nix flake check -L
macos-just-get-from-cache:
needs: linux-build-and-cache
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- name: Install nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable

- uses: cachix/cachix-action@v14
with:
name: holochain-ci

- uses: cachix/cachix-action@v14
with:
name: holochain-open-dev

- name: Install coreutils for macOS
run: brew install coreutils

- name: Build zomes
run: |
cd ./nix/fixtures/module-repo
nix flake update
nix build -L .#my_zome
sha256sum result
38 changes: 19 additions & 19 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
commonArgs = {
inherit src;
doCheck = false;
strictDeps = true;
CARGO_BUILD_TARGET = "wasm32-unknown-unknown";
};
cargoArtifacts = craneLib.buildDepsOnly (commonArgs // {
Expand Down Expand Up @@ -124,7 +123,6 @@
src = craneLib.cleanCargoSource
(craneLib.path ./nix/reference-happ);
doCheck = false;
strictDeps = true;
# RUSTFLAGS =
# "--remap-path-prefix ${cargoVendorDir}=/build/source/";
# CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS =
Expand Down
64 changes: 32 additions & 32 deletions nix/fixtures/module-repo/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7dd78a6

Please sign in to comment.