Skip to content
Open
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
8 changes: 1 addition & 7 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Copilot Agent Setup

on:
workflow_dispatch:
push:
Expand All @@ -17,35 +16,30 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
submodules: true
fetch-depth: 0

- uses: nixbuild/nix-quick-install-action@v30
with:
nix_conf: |
keep-env-derivations = true
keep-outputs = true

- name: Restore and save Nix store
uses: nix-community/cache-nix-action@v6
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
gc-max-store-size-linux: 1G

- name: Prepare environment files
run: |
set -euxo pipefail
cp -f .env.example .env
cp -f packages/webapp/.env.example packages/webapp/.env
cp -f .env.example crates/common/.env

- name: Prepare repository dependencies
run: ./prep-all.sh
env:
PUBLIC_WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID || 'test' }}
COMMIT_SHA: ${{ github.sha }}

# forwards status to telegram chat if this ci fails or gets canceled, only runs for default branch
- name: Forward CI Status
if: always()
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/deploy-subgraph.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Deploy subgraph
on:
workflow_dispatch:

jobs:
deploy:
permissions:
Expand All @@ -14,12 +13,10 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
submodules: true
fetch-depth: 0

- name: Free disk space
uses: jlumbroso/free-disk-space@v1.3.1

- uses: nixbuild/nix-quick-install-action@v30
with:
nix_conf: |
Expand All @@ -31,9 +28,7 @@ jobs:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
gc-max-store-size-linux: 1G

- run: nix develop -c subgraph-deploy

# forwards status to telegram chat if this ci fails or gets canceled, only runs for default branch
- name: Forward CI Status
if: always()
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/git-clean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on:
branches:
- main
pull_request:

concurrency:
group: ${{ github.ref }}-git-clean
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
git-clean:
permissions:
Expand All @@ -18,12 +16,10 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
submodules: true
fetch-depth: 0

- name: Free disk space
uses: jlumbroso/free-disk-space@v1.3.1

- uses: nixbuild/nix-quick-install-action@v30
with:
nix_conf: |
Expand All @@ -40,17 +36,13 @@ jobs:
# before trying to save a new cache
# 1G = 1073741824
gc-max-store-size-linux: 1G

# Build metas etc. required to do a correct pointer build.
- run: ./pointers.sh

# Format the repo after generating pointers so that the pointer files are
# formatted too.
- run: nix develop -c forge fmt

# Check if the repo is clean after generating pointers and formatting.
- run: git diff --exit-code

# forwards status to telegram chat if this ci fails or gets canceled, only runs for default branch
- name: Forward CI Status
if: always() # This ensures it runs regardless of previous step outcomes
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/manual-rs-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Manual rs release
on: [workflow_dispatch]

jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -11,8 +10,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

submodules: true
- uses: nixbuild/nix-quick-install-action@v30
with:
nix_conf: |
Expand All @@ -29,9 +27,7 @@ jobs:
# before trying to save a new cache
# 1G = 1073741824
gc-max-store-size-linux: 1G

- run: nix develop --command cargo release --workspace

# forwards status to telegram chat if this ci fails or gets canceled, only runs for default branch
- name: Forward CI Status
if: always()
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/manual-sol-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ on:
- arb-generic-pool-order-taker
- arb-route-processor-order-taker
- arb-generic-pool-flash-borrower

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -23,9 +22,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
submodules: true
fetch-depth: 0

- uses: nixbuild/nix-quick-install-action@v30
with:
nix_conf: |
Expand All @@ -42,31 +40,26 @@ jobs:
# before trying to save a new cache
# 1G = 1073741824
gc-max-store-size-linux: 1G

- run: nix develop -c rainix-sol-prelude
- run: nix develop -c rainix-rs-prelude
- run: nix develop -c raindex-prelude

- name: deploy to all supported networks
run: nix develop -c rainix-sol-artifacts
env:
DEPLOYMENT_SUITE: ${{ inputs.suite }}
DEPLOY_BROADCAST: "1"
DEPLOYMENT_KEY: ${{ secrets.PRIVATE_KEY }}
ETH_RPC_URL: ${{ secrets.CI_DEPLOY_BASE_RPC_URL || vars.CI_DEPLOY_BASE_RPC_URL || '' }}

CI_DEPLOY_ARBITRUM_RPC_URL: ${{ secrets.CI_DEPLOY_ARBITRUM_RPC_URL || vars.CI_DEPLOY_ARBITRUM_RPC_URL || '' }}
CI_DEPLOY_BASE_RPC_URL: ${{ secrets.CI_DEPLOY_BASE_RPC_URL || vars.CI_DEPLOY_BASE_RPC_URL || '' }}
CI_DEPLOY_BASE_SEPOLIA_RPC_URL: ${{ secrets.CI_DEPLOY_BASE_SEPOLIA_RPC_URL || vars.CI_DEPLOY_BASE_SEPOLIA_RPC_URL || '' }}
CI_DEPLOY_FLARE_RPC_URL: ${{ secrets.CI_DEPLOY_FLARE_RPC_URL || vars.CI_DEPLOY_FLARE_RPC_URL || '' }}
CI_DEPLOY_POLYGON_RPC_URL: ${{ secrets.CI_DEPLOY_POLYGON_RPC_URL || vars.CI_DEPLOY_POLYGON_RPC_URL || '' }}

CI_DEPLOY_ARBITRUM_ETHERSCAN_API_KEY: ${{ secrets.CI_DEPLOY_ARBITRUM_ETHERSCAN_API_KEY || vars.CI_DEPLOY_ARBITRUM_ETHERSCAN_API_KEY || '' }}
CI_DEPLOY_BASE_ETHERSCAN_API_KEY: ${{ secrets.CI_DEPLOY_BASE_ETHERSCAN_API_KEY || vars.CI_DEPLOY_BASE_ETHERSCAN_API_KEY || '' }}
CI_DEPLOY_BASE_SEPOLIA_ETHERSCAN_API_KEY: ${{ secrets.CI_DEPLOY_BASE_SEPOLIA_ETHERSCAN_API_KEY || vars.CI_DEPLOY_BASE_SEPOLIA_ETHERSCAN_API_KEY || '' }}
CI_DEPLOY_FLARE_ETHERSCAN_API_KEY: ${{ secrets.CI_DEPLOY_FLARE_ETHERSCAN_API_KEY || vars.CI_DEPLOY_FLARE_ETHERSCAN_API_KEY || '' }}
CI_DEPLOY_POLYGON_ETHERSCAN_API_KEY: ${{ secrets.CI_DEPLOY_POLYGON_ETHERSCAN_API_KEY || vars.CI_DEPLOY_POLYGON_ETHERSCAN_API_KEY || '' }}

# forwards status to telegram chat if this ci fails or gets canceled, only runs for default branch
- name: Forward CI Status
if: always()
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/rainix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on:
branches:
- main
pull_request:

concurrency:
group: ${{ github.ref }}-rainix
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
standard-tests:
permissions:
Expand Down Expand Up @@ -52,15 +50,13 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
submodules: true
fetch-depth: 0

- name: Free disk space
if: matrix.os == 'ubuntu-latest'
uses: jlumbroso/free-disk-space@v1.3.1
with:
large-packages: ${{ matrix.task != 'rainix-wasm-browser-test' }}

- uses: nixbuild/nix-quick-install-action@v30
with:
nix_conf: |
Expand All @@ -76,9 +72,7 @@ jobs:
# collect garbage until the Nix store size is at most this number
# before trying to save a new cache
gc-max-store-size-linux: 10G

- run: ./pointers.sh

- name: Run ${{ matrix.task }}
env:
ETH_RPC_URL: ${{ secrets.CI_DEPLOY_BASE_RPC_URL || vars.CI_DEPLOY_BASE_RPC_URL || '' }}
Expand All @@ -88,10 +82,9 @@ jobs:
CI_DEPLOY_FLARE_RPC_URL: ${{ secrets.CI_DEPLOY_FLARE_RPC_URL || vars.CI_DEPLOY_FLARE_RPC_URL || '' }}
CI_DEPLOY_POLYGON_RPC_URL: ${{ secrets.CI_DEPLOY_POLYGON_RPC_URL || vars.CI_DEPLOY_POLYGON_RPC_URL || '' }}
run: nix develop -c ${{ matrix.task }}

# forwards status to telegram chat if this ci fails or gets canceled, only runs for default branch
- name: Forward CI Status
if: always()
if: always()
uses: rainlanguage/github-chore/.github/actions/telegram-status-report@main
with:
status: ${{ job.status }}
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/test-subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,23 @@ on:
branches:
- main
pull_request:

concurrency:
group: ${{ github.ref }}-subgraph
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
test:
permissions:
id-token: write
contents: read
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

submodules: true
- name: Free disk space
uses: jlumbroso/free-disk-space@v1.3.1

- uses: nixbuild/nix-quick-install-action@v30
with:
nix_conf: |
Expand All @@ -42,16 +37,12 @@ jobs:
# before trying to save a new cache
# 1G = 1073741824
gc-max-store-size-linux: 1G

- run: |
(cd lib/rain.interpreter/lib/rain.interpreter.interface/lib/rain.math.float && nix develop -c rainix-sol-prelude)

- name: Build subgraph
run: nix develop -c subgraph-build

- name: Matchstick tests
run: nix develop -c subgraph-test

# forwards status to telegram chat if this ci fails or gets canceled, only runs for default branch
- name: Forward CI Status
if: always()
Expand Down
14 changes: 1 addition & 13 deletions .github/workflows/test-ui-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on:
branches:
- main
pull_request:

concurrency:
group: ${{ github.ref }}-ui-components
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
test:
permissions:
Expand All @@ -20,12 +18,10 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
submodules: true
fetch-depth: 0

- name: Free disk space
uses: jlumbroso/free-disk-space@v1.3.1

- uses: nixbuild/nix-quick-install-action@v30
with:
nix_conf: |
Expand All @@ -42,32 +38,24 @@ jobs:
# before trying to save a new cache
# 1G = 1073741824
gc-max-store-size-linux: 10G

- run: ./prep-webapp.sh
env:
PUBLIC_WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID || 'test' }}
COMMIT_SHA: ${{ github.sha }}
CARGO_HOME: ${{ github.workspace }}/.cargo
CARGO_TARGET_DIR: ${{ github.workspace }}/.cargo/target

- name: Cleanup Rust artifacts after prep
run: rm -rf target || true

- run: nix develop -c npm run svelte-lint-format-check -w @rainlanguage/ui-components

- run: nix develop -c npm run test -w @rainlanguage/ui-components

# check for npm package blacklists pkgs across all packages
- uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main

- uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main
with:
working-directory: packages/raindex

- uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main
with:
working-directory: packages/ui-components

# forwards status to telegram chat if this ci fails or gets canceled, only runs for default branch
- name: Forward CI Status
if: always()
Expand Down
Loading
Loading