-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b35f71
commit a39a1e3
Showing
6 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "test-nix-infra" | ||
on: | ||
# Trigger the workflow on push or pull request, | ||
# but only for the main branch | ||
push: | ||
branches: [ main, develop ] | ||
pull_request: | ||
branches: [ main, develop ] | ||
|
||
jobs: | ||
testbuild: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Extend space | ||
uses: ./.github/actions/extend-space | ||
|
||
- name: Install nix | ||
uses: cachix/install-nix-action@v18 | ||
with: | ||
install_url: https://releases.nixos.org/nix/nix-2.12.0/install | ||
extra_nix_config: | | ||
experimental-features = flakes nix-command | ||
- uses: cachix/cachix-action@v10 | ||
with: | ||
name: holochain-ci | ||
|
||
- name: Install coreutils for macOS | ||
if: matrix.os == 'macos-latest' | ||
run: brew install coreutils | ||
|
||
- name: Build zomes | ||
run: | | ||
cd ./nix/fixture | ||
nix build -L .#my_zome.meta.debug | ||
sha256sum result | ||
nix build -L .#my_zome | ||
sha256sum result | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
use hdk::prelude::*; | ||
|
||
|
||
#[hdk_extern] | ||
pub fn hello(_: ()) -> ExternResult<String> { | ||
Ok(String::from("hello")) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters