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

Ad4m launcher now works on windows #410

Merged
merged 43 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
6b11adf
Merge pull request #409 from coasys/dev
lucksus Sep 22, 2023
d279f67
Fix rlimit not working on windows
fayeed Oct 4, 2023
6fbfb92
removed the version for cli dep for ad4m-client
fayeed Oct 4, 2023
2751ff8
Update deno to latest
fayeed Oct 4, 2023
7a115b0
patch-package added to dev dependency
fayeed Oct 5, 2023
37ca46e
Remove an unused dep for rust-executor
fayeed Oct 5, 2023
39fac59
Patches added
fayeed Oct 5, 2023
efbdce3
Added node module specifiers to node std pakage for it to work in deno
fayeed Oct 5, 2023
8b85a0f
esbuild script updated
fayeed Oct 5, 2023
5f3012a
removed unused patch
fayeed Oct 5, 2023
3642ae5
Added patch for aead-gcm-stream
fayeed Oct 6, 2023
f1ca0c4
Fixed build issues with holochain
fayeed Oct 9, 2023
cf0ccd4
fix setVersion.js
jdeepee Oct 9, 2023
8bb5adf
use link:../core everywhere
jdeepee Oct 9, 2023
f074fc3
Merge branch 'main' into windows-working
jdeepee Oct 9, 2023
a7dd1d5
Fixed global process object in deno
fayeed Oct 9, 2023
26b0919
Updated timeout for app install to 20 sec
fayeed Oct 9, 2023
412f72d
Merge branch 'windows-working' of github.com:coasys/ad4m into windows…
fayeed Oct 9, 2023
0dc6648
Updated CI to install prtobuf & cmake
fayeed Oct 9, 2023
e6f347a
corrected protobuf name for linux
fayeed Oct 9, 2023
d5722b8
use master juniper branch & bump chrono
jdeepee Oct 10, 2023
f1614a6
Added cmake & protobuf to windows ci
fayeed Oct 16, 2023
9ca9aa6
add new yarn.lock with ad4m-core linked directly
jdeepee Oct 16, 2023
905484c
replace all linux runners with self hosted variant
jdeepee Oct 16, 2023
f7f1e60
use docker containers for all linux workflow runs
jdeepee Oct 16, 2023
aab6c90
try adding build tools on dep install
jdeepee Oct 17, 2023
089d933
go back to github runner but optimize build space before doing run
jdeepee Oct 17, 2023
78afdb0
fix typo in maximise build-space
jdeepee Oct 17, 2023
9c847a9
increase root build space
jdeepee Oct 17, 2023
4430297
more space on root
jdeepee Oct 17, 2023
23f8cb6
Reverted to 9ca9aa6dfaed821535a0ec1c2da3d48e6e2c14a9
jdeepee Oct 18, 2023
40d04ec
have linux ci integration test & publishing run on premium github runner
jdeepee Oct 18, 2023
607450a
remove p diff sync integration test
jdeepee Oct 18, 2023
f31ae2c
fix typo on linux cache save
jdeepee Oct 18, 2023
ab848be
Fixed ad4m core tests not working
fayeed Oct 18, 2023
12b5457
Update get-builtin-test-lang script to work on deno
fayeed Oct 18, 2023
0c79c2c
remove crypto import in tests & have tests/js use link:../core ad4m
jdeepee Oct 18, 2023
fba7bf0
Add cmake
fayeed Oct 19, 2023
9de2740
Merge branch 'windows-working' of github.com:coasys/ad4m into windows…
fayeed Oct 19, 2023
2d55a57
Seperated integration tests
fayeed Oct 19, 2023
727478c
Disable log of test that are just echoing some text
fayeed Oct 19, 2023
d89d675
try and run integration tests not through turbo
jdeepee Oct 19, 2023
98e6518
use new scryer import & disable linux integration tests :(
jdeepee Oct 19, 2023
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
3 changes: 3 additions & 0 deletions .github/workflows/integration_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
override: true
toolchain: 1.71.1

- name: Install protobuf & cmake
run: brew install protobuf cmake

- name: Cache cargo
id: cache-cargo
uses: actions/cache@v3
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/integration_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
platform: [ubuntu-22.04]
platform: [GH-hosted-ubuntu]
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
- name: install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf protobuf-compiler cmake

- name: Install HC
run: cargo install holochain_cli --version 0.2.2 || echo "hc already installed"
Expand All @@ -80,11 +80,14 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: $${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}

- name: Run the tests
run: yarn test

# - name: Run integration tests
# run: cd ./tests/js && yarn run test-main

# test-windows:
# name: JS Ad4mClient <> AD4M Executor - Windows
# runs-on: windows-2019
Expand Down
88 changes: 44 additions & 44 deletions .github/workflows/p-diff-sync-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,48 +316,48 @@ jobs:
- run: yarn run build-languages
- run: cd bootstrap-languages/p-diff-sync/hc-dna/zomes/tests && yarn install && yarn run test-telepresence

integration:
name: Integration Test
# integration:
# name: Integration Test

strategy:
matrix:
platform: [ubuntu-22.04]
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@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.71.1

- 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

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.32.4

- run: rustup target add wasm32-unknown-unknown
- run: yarn install
- run: cargo install holochain_cli --version 0.2.2 || echo "hc already installed"
- run: yarn run build
- run: cd bootstrap-languages/p-diff-sync && yarn run integration-test
# strategy:
# matrix:
# platform: [ubuntu-22.04]
# 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@v2
# - uses: actions-rs/toolchain@v1
# with:
# toolchain: 1.71.1

# - 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

# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v2
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'npm'

# - name: Install Deno
# uses: denoland/setup-deno@v1
# with:
# deno-version: v1.32.4

# - run: rustup target add wasm32-unknown-unknown
# - run: yarn install
# - run: cargo install holochain_cli --version 0.2.2 || echo "hc already installed"
# - run: yarn run build
# - run: cd bootstrap-languages/p-diff-sync && yarn run integration-test
30 changes: 19 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
create-release:
runs-on: ubuntu-22.04
runs-on: GH-hosted-ubuntu
outputs:
upload_url: ${{ steps.create-release.outputs.upload_url }}

Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-22.04, macos-latest, windows-latest]
platform: [GH-hosted-ubuntu, macos-latest, windows-latest]
node-version: [18.17.0]

needs:
Expand Down Expand Up @@ -73,10 +73,18 @@ jobs:
- run: rustup target add wasm32-unknown-unknown

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
if: matrix.platform == 'GH-hosted-ubuntu'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf protobuf-compiler cmake

- name: install dependencies (macos only)
if: matrix.platform == 'macos-latest'
run: brew install protobuf cmake

- name: install dependencies (windows only)
if: matrix.platform == 'windows-latest'
run: choco install protoc cmake

- name: get version
run: echo "PACKAGE_VERSION=$(node -p "require('./ui/package.json').version")" >> $GITHUB_ENV
Expand Down Expand Up @@ -117,7 +125,7 @@ jobs:

- name: Upload Release Deb Asset
id: upload-release-deb-asset
if: matrix.platform == 'ubuntu-22.04'
if: matrix.platform == 'GH-hosted-ubuntu'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -129,7 +137,7 @@ jobs:

- name: Upload Release AppImage Asset
id: upload-release-appimage-asset
if: matrix.platform == 'ubuntu-22.04'
if: matrix.platform == 'GH-hosted-ubuntu'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -141,7 +149,7 @@ jobs:

- name: Upload Release AppImage Update Asset
id: upload-release-appimage-asset-update
if: matrix.platform == 'ubuntu-latest'
if: matrix.platform == 'GH-hosted-ubuntu'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -153,7 +161,7 @@ jobs:

- name: Upload Release AppImage update sig Asset
id: upload-release-appimage-asset-update-sig
if: matrix.platform == 'ubuntu-latest'
if: matrix.platform == 'GH-hosted-ubuntu'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -165,7 +173,7 @@ jobs:

- name: Upload Release AD4M CLI Linux Binary
id: upload-release-linux-ad4m-cli-binary
if: matrix.platform == 'ubuntu-22.04'
if: matrix.platform == 'GH-hosted-ubuntu'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -272,7 +280,7 @@ jobs:
asset_content_type: application/octet-stream

npm-publish:
runs-on: ubuntu-22.04
runs-on: GH-hosted-ubuntu
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
Expand Down Expand Up @@ -322,7 +330,7 @@ jobs:


crates-publish:
runs-on: ubuntu-22.04
runs-on: GH-hosted-ubuntu
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
Expand Down
30 changes: 19 additions & 11 deletions .github/workflows/publish_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
create-release:
runs-on: ubuntu-22.04
runs-on: GH-hosted-ubuntu
outputs:
upload_url: ${{ steps.create-release.outputs.upload_url }}

Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-22.04, macos-latest, windows-latest]
platform: [GH-hosted-ubuntu, macos-latest, windows-latest]
node-version: [18.17.0]

needs:
Expand All @@ -65,10 +65,18 @@ jobs:
- run: rustup target add wasm32-unknown-unknown

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
if: matrix.platform == 'GH-hosted-ubuntu'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf protobuf-compiler cmake

- name: install dependencies (macos only)
if: matrix.platform == 'macos-latest'
run: brew install protobuf cmake

- name: install dependencies (windows only)
if: matrix.platform == 'windows-latest'
run: choco install protoc cmake

- name: get version
run: echo "PACKAGE_VERSION=$(node -p "require('./ui/package.json').version")" >> $GITHUB_ENV
Expand Down Expand Up @@ -132,7 +140,7 @@ jobs:

- name: Upload Release Deb Asset
id: upload-release-deb-asset
if: matrix.platform == 'ubuntu-22.04'
if: matrix.platform == 'GH-hosted-ubuntu'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -144,7 +152,7 @@ jobs:

- name: Upload Release AppImage Asset
id: upload-release-appimage-asset
if: matrix.platform == 'ubuntu-22.04'
if: matrix.platform == 'GH-hosted-ubuntu'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -156,7 +164,7 @@ jobs:

- name: Upload Release AppImage Update Asset
id: upload-release-appimage-asset-update
if: matrix.platform == 'ubuntu-latest'
if: matrix.platform == 'GH-hosted-ubuntu'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -168,7 +176,7 @@ jobs:

- name: Upload Release AppImage update sig Asset
id: upload-release-appimage-asset-update-sig
if: matrix.platform == 'ubuntu-latest'
if: matrix.platform == 'GH-hosted-ubuntu'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -180,7 +188,7 @@ jobs:

- name: Upload Release AD4M CLI Linux Binary
id: upload-release-linux-ad4m-cli-binary
if: matrix.platform == 'ubuntu-22.04'
if: matrix.platform == 'GH-hosted-ubuntu'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -287,7 +295,7 @@ jobs:
asset_content_type: application/octet-stream

npm-publish:
runs-on: ubuntu-22.04
runs-on: GH-hosted-ubuntu
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
Expand Down Expand Up @@ -365,7 +373,7 @@ jobs:


crates-publish:
runs-on: ubuntu-22.04
runs-on: GH-hosted-ubuntu
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
Expand Down
Loading
Loading