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

feat: add build workflow #14

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build

on:
push:
branches: [main]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Install
run: |
pnpm install --frozen-lockfile --prefer-offline

- name: Copy .env
run: |
cp .env.example .env
working-directory: packages/interface

- name: Build
run: |
pnpm run build
7 changes: 3 additions & 4 deletions packages/interface/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ NEXT_PUBLIC_PIMLICO_API_KEY=

# WalletConnect (optional to support more wallets)
# Get your projectId at https://cloud.walletconnect.com
NEXT_PUBLIC_WALLETCONNECT_ID=
NEXT_PUBLIC_WALLETCONNECT_ID=0x

# -----------------
# APP CONFIGURATION
Expand All @@ -48,8 +48,7 @@ NEXT_PUBLIC_RESULTS_DATE=2024-01-01T00:00:00.000Z
NEXT_PUBLIC_FEEDBACK_URL=https://github.com/privacy-scaling-explorations/maci-platform/issues/new?title=Feedback

# address that will approve applications and voters
# (leaving empty means anyone can do this)
NEXT_PUBLIC_ADMIN_ADDRESS=
NEXT_PUBLIC_ADMIN_ADDRESS=0x64c30E48b60E62E85c5b11786AC25Ab1adC9C936

# -----------------
# EAS CONFIGURATION
Expand Down Expand Up @@ -78,7 +77,7 @@ NEXT_PUBLIC_SEMAPHORE_SUBGRAPH=
# Do this if the schemas doesn't exist on the network you're using.
WALLET_PRIVATE_KEY=""

NEXT_PUBLIC_MACI_ADDRESS=
NEXT_PUBLIC_MACI_ADDRESS=0x64c30E48b60E62E85c5b11786AC25Ab1adC9C936

NEXT_PUBLIC_MACI_START_BLOCK=

Expand Down