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

Share cache for cargo builds #239

Merged
merged 2 commits into from
Oct 2, 2024
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: 7 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,42 +32,27 @@ jobs:
- name: Build Nix packages
run: nix develop -c $SHELL -c "echo Nix packages built"

- name: Restore TryCP server build
uses: actions/cache/restore@v4
with:
path: crates/trycp_server/target
key: ${{ runner.os }}-build-trycp-${{ hashFiles('Cargo.lock') }}

- name: Build TryCP server
run: nix develop -c $SHELL -c "./build-trycp.sh"

- name: Run TryCP integration tests
run: nix develop -c $SHELL -c "cargo test -p trycp_server --release --target-dir crates/trycp_server/target"

- name: Save TryCP build to cache
uses: actions/cache/save@v4
with:
path: crates/trycp_server/target
key: ${{ runner.os }}-build-trycp-${{ hashFiles('Cargo.lock') }}

- name: Restore test zome build
- name: Restore cargo cache
uses: actions/cache/restore@v4
with:
path: |
.cargo
target
key: ${{ runner.os }}-build-test-zomes-${{ hashFiles('Cargo.lock') }}
key: ${{ runner.os }}-cargo-cache-${{ hashFiles('Cargo.lock') }}

- name: Run TryCP integration tests
run: nix develop -c $SHELL -c "cargo test -p trycp_server --release"

- name: Build test zomes
run: nix develop -c $SHELL -c "./build-fixture.sh"

- name: Save test zome build to cache
- name: Save cargo cache
uses: actions/cache/save@v4
with:
path: |
.cargo
target
key: ${{ runner.os }}-build-test-zomes-${{ hashFiles('Cargo.lock') }}
key: ${{ runner.os }}-cargo-cache-${{ hashFiles('Cargo.lock') }}

- name: Install JS packages
run: nix develop -c $SHELL -c "npm ci"
Expand Down
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
## \[Unreleased\]

### Added
- Support for DPKI in Holochain. DPKI is a Holochain conductor service to manage agent keys. Within a scenario there are two new member properties `noDpki` and `dpkiNetworkSeed`. Set `noDpki` to `true` to disable DPKI for the scenario. If DPKI is enabled, a network seed for the DPKI service can be set with `dpkiNetworkSeed`.
- Admin API call `RevokeAgentKey` to revoke an agent key. Once revoked, all cells of the app are read-only and the agent can no longer write to it.
### Removed
### Changed
### Fixed

## 2024-10-02: v0.17.0-dev.6
### Added
- Support for DPKI in Holochain. DPKI is a Holochain conductor service to manage agent keys. Within a scenario there are two new member properties `noDpki` and `dpkiNetworkSeed`. Set `noDpki` to `true` to disable DPKI for the scenario. If DPKI is enabled, a network seed for the DPKI service can be set with `dpkiNetworkSeed`.
- Admin API call `RevokeAgentKey` to revoke an agent key. Once revoked, all cells of the app are read-only and the agent can no longer write to it.
### Fixed
- TryCP: Conductor startup failed silently. Errors are returned now, conductor startup ensured and conductor process only kept alive if startup was successful.
- TryCP: Admin port assignment did not check if TCP ports were actually free.

## 2024-08-13: v0.17.0-dev.5
### Added
- New parameter can be specified when calling `addPlayerWithApp` to specify the logLevel that the Holochain conductor
Expand Down
Loading
Loading