Skip to content

Commit

Permalink
Add sei support (#403)
Browse files Browse the repository at this point in the history
Co-authored-by: yuliferna <[email protected]>
  • Loading branch information
sebastianscatularo and yuli-ferna authored Sep 28, 2023
1 parent ab47db4 commit 0399187
Show file tree
Hide file tree
Showing 49 changed files with 63,733 additions and 41,589 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Set up Node environment
uses: actions/setup-node@v3
with:
node-version: v16.19.1
node-version: v18.17.1
- name: Install dependencies
run: |
pushd docs
Expand All @@ -71,7 +71,7 @@ jobs:

portal:
name: "Build Portal Bridge"
runs-on: "ubuntu-latest"
runs-on: xlabs-large-runner
concurrency:
group: ${{ github.ref }}-portal-preview
cancel-in-progress: true
Expand All @@ -82,13 +82,13 @@ jobs:
- name: Set up Node environment
uses: actions/setup-node@v3
with:
node-version: v16.19.1
node-version: v18.17.1
- name: Setup Git
run: |
git config user.name "xLabs CI"
git config user.email "[email protected]"
- name: Install dependencies
run: npm ci
run: npm install
- name: Set Version
run: |
npm version $(node -p -e "require('./package.json').version")-P$(echo ${{ github.sha }} | cut -c -10)
Expand All @@ -97,7 +97,7 @@ jobs:
- name: Build
env:
PUBLIC_URL: "/${{ env._BRANCH_NAME_SHA }}"
NODE_OPTIONS: ${{ vars.NODE_OPTIONS }}
NODE_OPTIONS: "--max-old-space-size=10240"
REACT_APP_CLUSTER: ${{ vars.REACT_APP_CLUSTER }}
REACT_APP_SOLANA_API_URL: ${{ vars.REACT_APP_SOLANA_API_URL }}
REACT_APP_COVALENT_API_KEY: ${{ secrets.REACT_APP_COVALENT_API_KEY }}
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
- name: Set up GitHub NPM registry
uses: actions/setup-node@v3
with:
node-version: v16.19.1
node-version: v18.17.1
registry-url: https://npm.pkg.github.com
- name: Publish
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:

portal:
name: "Build Portal Bridge"
runs-on: ubuntu-latest
runs-on: xlabs-large-runner
concurrency:
group: ${{ github.ref }}-portal-release
cancel-in-progress: true
Expand All @@ -84,7 +84,7 @@ jobs:
- name: Set up Node environment
uses: actions/setup-node@v3
with:
node-version: v16.19.1
node-version: v18.17.1
registry-url: https://npm.pkg.github.com

- name: Cache Node modules
Expand All @@ -105,7 +105,7 @@ jobs:

- name: Build
env:
NODE_OPTIONS: ${{ vars.NODE_OPTIONS }}
NODE_OPTIONS: "--max-old-space-size=10240"
REACT_APP_CLUSTER: ${{ vars.REACT_APP_CLUSTER }}
REACT_APP_SOLANA_API_URL: ${{ vars.REACT_APP_SOLANA_API_URL }}
REACT_APP_COVALENT_API_KEY: ${{ secrets.REACT_APP_COVALENT_API_KEY }}
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
- name: Set up GitHub NPM registry
uses: actions/setup-node@v3
with:
node-version: v16.19.1
node-version: v18.17.1
registry-url: https://npm.pkg.github.com
- name: Publish
env:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

portal:
name: "Build Portal Bridge"
runs-on: "ubuntu-latest"
runs-on: xlabs-large-runner
concurrency:
group: ${{ github.ref }}-portal-testnet
cancel-in-progress: true
Expand All @@ -52,13 +52,13 @@ jobs:
- name: Set up Node environment
uses: actions/setup-node@v3
with:
node-version: v16.19.1
node-version: v18.17.1
- name: Setup Git
run: |
git config user.name "xLabs CI"
git config user.email "[email protected]"
- name: Install dependencies
run: npm ci
run: npm install
- name: Set Version
run: |
npm version $(node -p -e "require('./package.json').version")-T$(echo ${{ github.sha }} | cut -c -10)
Expand All @@ -67,7 +67,7 @@ jobs:
- name: Build
env:
PUBLIC_URL: "/${{ env._BRANCH_NAME_SHA }}"
NODE_OPTIONS: ${{ vars.NODE_OPTIONS }}
NODE_OPTIONS: "--max-old-space-size=10240"
REACT_APP_CLUSTER: testnet
REACT_APP_SOLANA_API_URL: ${{ vars.REACT_APP_SOLANA_API_URL }}
REACT_APP_COVALENT_API_KEY: ${{ secrets.REACT_APP_COVALENT_API_KEY }}
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
- name: Set up GitHub NPM registry
uses: actions/setup-node@v3
with:
node-version: v16.19.1
node-version: v18.17.1
registry-url: https://npm.pkg.github.com
- name: Publish
env:
Expand Down
10 changes: 10 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
const { ProvidePlugin } = require("webpack");
const threadLoader = require('thread-loader');

module.exports = function override(config, env) {
config.module.rules.forEach(rule => {
if (rule.loader && rule.loader.includes('babel-loader')) {
// Use thread-loader for Babel
threadLoader(rule.loader, {
// Number of worker threads to use
workers: 2, // Adjust as needed
});
}
});
return {
...config,
module: {
Expand Down
Loading

0 comments on commit 0399187

Please sign in to comment.