mirror of
https://github.com/selfxyz/self.git
synced 2026-01-10 15:18:18 -05:00
* Add Maestro e2e testing * Run Maestro flows in parallel * Fix mobile e2e workflow * Fix e2e script flow path * prettier * fix * prettier * standardize yml files and new formatting commands * fix ndk * fix exclusions * use double quotes for yml files * feedback * fixes * fixes * fix * fix ios job * unneeded * fix workflows * fix launch workflow * fix * fix pipeline * workflow fixes * install app to emulators * better logging * save current version of test script * android works. ios wip. update locks * fix pipelines * cr feedback * fix android e2e test * Split mobile e2e workflow by platform (#842) * Replace react-native-quick-crypto with @noble/hashes (#841) * Add tests for ethers polyfills * Add crypto utils * Inline crypto polyfills into ethers util * sort and update gemfile lock * update lock * chore: incrementing ios build number for version 2.6.3 [github action] * android works. ios wip. update locks * Specify Maestro platform * Fix Android build step in e2e workflow * fix android * update ios * add concurrency * update Podfile.lock * fix android * prettier * fix * fix android pipeline * try job again * fix ios * fix android * fix ios * fix command * use android runner now that path is fixed * fix android e2e test * fix adb * add caching * fix build * speed up build * fix * test emulator options * updates * fix pipeline * fix * fix script and move on * add comment --------- Co-authored-by: Self GitHub Actions <action@github.com> * feedback * fixes * ignore for now * ignore * fix tests * fix ios simulator booting * fix ios test * shutdown after run * fix ios test * better timing * increase ios timeout * fix both flows * fix pipeline * combine command * fix ios * break up build steps for better caching * remove cache * fix ios and android test pipelines * update logic --------- Co-authored-by: Self GitHub Actions <action@github.com>
73 lines
1.9 KiB
YAML
73 lines
1.9 KiB
YAML
name: Circuits Build
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "circuits/circuits/**"
|
|
- ".github/workflows/artifacts.yml"
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "circuits/circuits/**"
|
|
- ".github/workflows/artifacts.yml"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ["self-hosted", "selfxyz-org", "ubuntu-22-04", "128ram"]
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install cpp dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install --yes \
|
|
build-essential \
|
|
libgmp-dev \
|
|
libsodium-dev \
|
|
nasm \
|
|
nlohmann-json3-dev \
|
|
wget
|
|
|
|
# TODO(): Use caching
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
corepack enable
|
|
yarn set version 4.6.0
|
|
cd circuits && yarn
|
|
|
|
- name: Setup Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Download Circom Binary v2.1.9
|
|
run: |
|
|
mkdir -p /home/runner/work
|
|
wget -qO /home/runner/work/circom https://github.com/iden3/circom/releases/download/v2.1.9/circom-linux-amd64
|
|
chmod +x /home/runner/work/circom
|
|
sudo mv /home/runner/work/circom /bin/circom
|
|
|
|
- name: Print Circom version
|
|
run: circom --version
|
|
|
|
- name: Build cpp circuits
|
|
run: |
|
|
chmod +x circuits/scripts/build/build_cpp.sh && \
|
|
./circuits/scripts/build/build_cpp.sh register &&
|
|
./circuits/scripts/build/build_cpp.sh register_id &&
|
|
./circuits/scripts/build/build_cpp.sh disclose &&
|
|
./circuits/scripts/build/build_cpp.sh dsc
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: circuits
|
|
path: output/
|