Skip to content

Commit

Permalink
ci: share cache for cargo builds (#239)
Browse files Browse the repository at this point in the history
* chore(release): v0.17.0-dev.6

* ci: share cargo cache
  • Loading branch information
jost-s authored Oct 2, 2024
1 parent 3a687eb commit fda0862
Show file tree
Hide file tree
Showing 11 changed files with 536 additions and 699 deletions.
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

0 comments on commit fda0862

Please sign in to comment.