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

introduce gearexe #1733

Merged
merged 17 commits into from
Feb 7, 2025
Merged
Changes from 7 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
51 changes: 50 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ jobs:
- name: 'Build all packages'
run: yarn build

test-api:
test-gear-api:
runs-on: ubuntu-22.04
env:
RUSTUP_HOME: /tmp/rustup_home
@@ -98,6 +98,55 @@ jobs:
- name: 'Test: run'
run: yarn test:gear-api

test-gearexe-api:
runs-on: ubuntu-22.04
env:
RUSTUP_HOME: /tmp/rustup_home
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1

- name: 'Checkout'
uses: actions/checkout@v4

- name: 'Check if gearexe files changed'
id: changed-gearexe
uses: tj-actions/changed-files@v45
with:
files: |
apis/gearexe/**

- name: 'Install: NodeJS 20.x'
if: steps.changed-gearexe.outputs.any_changed == 'true'
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Set up Rust
if: steps.changed-gearexe.outputs.any_changed == 'true'
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
components: clippy, rustfmt, llvm-tools, rust-src

- name: 'Install: binaryen'
if: steps.changed-gearexe.outputs.any_changed == 'true'
run: |
wget -c https://github.com/WebAssembly/binaryen/releases/download/$BINARYEN_VERSION/binaryen-$BINARYEN_VERSION-x86_64-linux.tar.gz -O - | tar -xz -C .
sudo cp binaryen-$BINARYEN_VERSION/bin/wasm-opt /usr/bin/

- name: 'Install: Foundry'
if: steps.changed-gearexe.outputs.any_changed == 'true'
uses: foundry-rs/foundry-toolchain@v1

- name: 'Install dependencies'
if: steps.changed-gearexe.outputs.any_changed == 'true'
run: yarn workspaces focus gear-js @gear-js/api gearexe

- name: 'Test: run'
if: steps.changed-gearexe.outputs.any_changed == 'true'
run: yarn test:gearexe-api

check-gear-idea-version:
runs-on: ubuntu-latest
steps:
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@ idea/gear/indexer-db/lib/

# apis
apis/gear/lib/
apis/gearexe/lib/

# cargo
.binpath
Loading