mirror of
https://github.com/selfxyz/self.git
synced 2026-02-19 02:24:25 -05:00
Run in self-hosted org runners (#56)
This commit is contained in:
51
.github/workflows/artifacts.yml
vendored
51
.github/workflows/artifacts.yml
vendored
@@ -6,40 +6,22 @@ on:
|
||||
- main
|
||||
paths:
|
||||
- "circuits/circuits/**"
|
||||
- ".github/workflows/artifacts.yml"
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "circuits/circuits/**"
|
||||
- ".github/workflows/artifacts.yml"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04-large
|
||||
runs-on: ['self-hosted', 'org', 'ubuntu-22-04']
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install npm
|
||||
run: |
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
|
||||
nvm install 20
|
||||
npm -v
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
npm i -g yarn && cd circuits && yarn
|
||||
- name: Setup Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Download Circom Binary v2.1.9
|
||||
run: |
|
||||
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: Install cpp dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
@@ -48,7 +30,30 @@ jobs:
|
||||
libgmp-dev \
|
||||
libsodium-dev \
|
||||
nasm \
|
||||
nlohmann-json3-dev
|
||||
nlohmann-json3-dev \
|
||||
wget
|
||||
|
||||
# TODO(): Use caching
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
npm i -g yarn && 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: |
|
||||
|
||||
Reference in New Issue
Block a user