This repository has been archived by the owner on Nov 26, 2024. It is now read-only.
adapted to app authentication, added __HC_ZOME_CALL_SIGNER__ logic #1080
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
name: "test" | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the main branch | |
push: | |
branches: [main, develop, holochain-weekly] | |
pull_request: | |
branches: [main, develop, holochain-weekly] | |
jobs: | |
testbuild: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "16.x" | |
- name: install Rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
override: true | |
toolchain: "1.71.1" | |
- name: install Go stable | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "stable" | |
- name: install webkit2gtk (ubuntu only) | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev | |
- name: install Holochain | |
run: | | |
mkdir src-tauri/bins | |
cargo install --version 0.3.0 lair_keystore | |
LAIR_PATH=$(which lair-keystore) | |
cp $LAIR_PATH src-tauri/bins/lair-keystore-v0.3.0-x86_64-unknown-linux-gnu | |
cargo install holochain --version 0.3.0-beta-dev.34 | |
HOLOCHAIN_PATH=$(which holochain) | |
cp $HOLOCHAIN_PATH src-tauri/bins/holochain-v0.3.0-beta-dev.34-x86_64-unknown-linux-gnu | |
# NEW_VERSION: install new holochain version and copy its binary to the tauri path | |
- name: install app dependencies and build it | |
run: npm install && npm run build | |
env: | |
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY_0_2 }} | |
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | |
holochain_cli_launch: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-latest, ubuntu-22.04] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install Go stable | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "stable" | |
- name: install webkit2gtk (ubuntu only) | |
if: matrix.platform == 'ubuntu-22.04' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev | |
- name: install holochain_cli_launch to make sure it compiles | |
run: cargo build --release --bin hc-launch |