Skip to content

Rust holochain 0.3.0 #1003

Rust holochain 0.3.0

Rust holochain 0.3.0 #1003

name: Integration
on:
push:
branches:
- main
- dev
pull_request:
jobs:
test-linux:
name: JS Ad4mClient <> AD4M Executor - Linux
strategy:
matrix:
platform: [GH-hosted-ubuntu]
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.68.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Cache cargo
id: cache-cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}
${{ runner.os }}-cargo
- run: rustup target add wasm32-unknown-unknown
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.32.4
- name: Install dependencies
run: yarn install
- name: Build the workspace
run: yarn run build
- uses: actions/cache/save@v3
if: always()
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: $${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}
- name: Run the tests
run: yarn test
test-windows:
name: JS Ad4mClient <> AD4M Executor - Windows
runs-on: windows-2019
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.68.2
- name: Cache cargo
id: cache-cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}
${{ runner.os }}-cargo
- run: rustup target add wasm32-unknown-unknown
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.32.4
- name: Install dependencies
run: yarn install
- name: Build the workspace
run: yarn run build
- uses: actions/cache/save@v3
if: always()
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: $${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}
- name: Run the tests
run: |
choco install swi-prolog
$env:path += ";C:\Program Files\swipl\bin"
yarn run test:windows
test-macos:
name: JS Ad4mClient <> AD4M Executor - MacOS
runs-on: macos-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.68.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Cache cargo
id: cache-cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}
${{ runner.os }}-cargo
- run: rustup target add wasm32-unknown-unknown
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.32.4
- name: Install dependencies
run: yarn install
- name: Build the workspace
run: yarn run build
- uses: actions/cache/save@v3
if: always()
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: $${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}
- name: Run the tests
run: yarn test