Skip to content

Commit

Permalink
unfixed: merge with main leads to issues
Browse files Browse the repository at this point in the history
  • Loading branch information
0xPrimata committed Jun 18, 2024
2 parents a434724 + 4a99d52 commit 5a9f7b9
Show file tree
Hide file tree
Showing 173 changed files with 7,706 additions and 2,945 deletions.
284 changes: 284 additions & 0 deletions .github/workflows/build-push-containers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,284 @@
name: Build Push Containers

on:
push:

jobs:

m1-da-light-node-build:
permissions:
contents: read
packages: write
strategy:
matrix:
architecture: [x86_64, arm64]

runs-on: ${{ matrix.architecture == 'x86_64' && 'ubuntu-latest' || 'buildjet-8vcpu-ubuntu-2204-arm' }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker image movement
run: |
./scripts/movement/build-push-image m1-da-light-node
m1-da-light-node-manifest:
permissions:
contents: read
packages: write
needs: m1-da-light-node-build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker image movement
run: |
./scripts/movement/manifest m1-da-light-node
celestia-app-build:
permissions:
contents: read
packages: write
strategy:
matrix:
architecture: [x86_64, arm64]

runs-on: ${{ matrix.architecture == 'x86_64' && 'buildjet-8vcpu-ubuntu-2204' || 'buildjet-8vcpu-ubuntu-2204-arm' }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker image movement
run: |
./scripts/movement/build-push-image celestia-app
celestia-app-manifest:
permissions:
contents: read
packages: write
needs: celestia-app-build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker image movement
run: |
./scripts/movement/manifest celestia-app
celestia-node-build:
permissions:
contents: read
packages: write
strategy:
matrix:
architecture: [x86_64, arm64]

runs-on: ${{ matrix.architecture == 'x86_64' && 'buildjet-8vcpu-ubuntu-2204' || 'buildjet-8vcpu-ubuntu-2204-arm' }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker image movement
run: |
./scripts/movement/build-push-image celestia-node
celestia-node-manifest:
permissions:
contents: read
packages: write
needs: celestia-node-build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker image movement
run: |
./scripts/movement/manifest celestia-node
suzuka-config-build:
permissions:
contents: read
packages: write
strategy:
matrix:
architecture: [x86_64, arm64]

runs-on: ${{ matrix.architecture == 'x86_64' && 'buildjet-8vcpu-ubuntu-2204' || 'buildjet-8vcpu-ubuntu-2204-arm' }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker image movement
run: |
./scripts/movement/build-push-image celestia-node
suzuka-config-manifest:
permissions:
contents: read
packages: write
needs: suzuka-config-build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker image movement
run: |
./scripts/movement/manifest celestia-node
wait-for-celestia-light-node-build:
permissions:
contents: read
packages: write
strategy:
matrix:
architecture: [x86_64, arm64]

runs-on: ${{ matrix.architecture == 'x86_64' && 'buildjet-8vcpu-ubuntu-2204' || 'buildjet-8vcpu-ubuntu-2204-arm' }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker image movement
run: |
./scripts/movement/build-push-image wait-for-celestia-light-node
wait-for-celestia-light-node-manifest:
permissions:
contents: read
packages: write
needs: wait-for-celestia-light-node-build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker image movement
run: |
./scripts/movement/manifest wait-for-celestia-light-node
suzuka-full-node-build:
permissions:
contents: read
packages: write
strategy:
matrix:
architecture: [x86_64, arm64]

runs-on: ${{ matrix.architecture == 'x86_64' && 'buildjet-8vcpu-ubuntu-2204' || 'buildjet-8vcpu-ubuntu-2204-arm' }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker image movement
run: |
./scripts/movement/build-push-image suzuka-full-node
suzuka-full-node-manifest:
permissions:
contents: read
packages: write
needs: suzuka-full-node-build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker image movement
run: |
./scripts/movement/manifest suzuka-full-node

92 changes: 78 additions & 14 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

jobs:
build:
cargo-check:
strategy:
matrix:
include:
Expand All @@ -24,25 +24,89 @@ jobs:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Run MCR tests in nix environment
run: nix develop --command bash -c "just mcr-contract-tests"

- name: Run MCR client tests in nix environment
run: CELESTIA_LOG_LEVEL=FATAL MOVEMENT_PREBUILT=false nix develop --command bash -c "just mcr test.local -t=false"

- name: Run Cargo Check in nix environment
run: nix develop --command bash -c "cargo check"

# - name: Prebuild binaries in nix environment
# run: nix develop --command bash -c "./scripts/build/prebuild"
suzuka-full-node:
strategy:
matrix:
include:
- os: ubuntu-22.04
arch: x86_64
runs-on: buildjet-8vcpu-ubuntu-2204

runs-on: ${{ matrix.runs-on }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Run M1 DA Light Node tests in nix environment
# adjust the log level while debugging
run: CELESTIA_LOG_LEVEL=FATAL MOVEMENT_PREBUILT=false nix develop --command bash -c "just m1-da-light-node test.local -t=false"
run: CELESTIA_LOG_LEVEL=FATAL nix develop --command bash -c "just suzuka-full-node native build.setup.test.local -t=false"

m1-da-light-node:
strategy:
matrix:
include:
- os: ubuntu-22.04
arch: x86_64
runs-on: buildjet-8vcpu-ubuntu-2204

runs-on: ${{ matrix.runs-on }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Print available filesystem space
run: df -h
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Run suzuka tests in nix environment
- name: Run M1 DA Light Node tests in nix environment
# adjust the log level while debugging
run: CELESTIA_LOG_LEVEL=FATAL nix develop --command bash -c "just m1-da-light-node native build.setup.test.local -t=false"

monza-full-node:
strategy:
matrix:
include:
- os: ubuntu-22.04
arch: x86_64
runs-on: buildjet-8vcpu-ubuntu-2204

runs-on: ${{ matrix.runs-on }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Run M1 DA Light Node tests in nix environment
# adjust the log level while debugging
run: CELESTIA_LOG_LEVEL=FATAL nix develop --command bash -c "just monza-full-node native build.setup.test.local -t=false"

mcr:
strategy:
matrix:
include:
- os: ubuntu-22.04
arch: x86_64
runs-on: buildjet-8vcpu-ubuntu-2204

runs-on: ${{ matrix.runs-on }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Run M1 DA Light Node tests in nix environment
# adjust the log level while debugging
run: CELESTIA_LOG_LEVEL=FATAL MOVEMENT_PREBUILT=false nix develop --command bash -c "just suzuka-full-node test.local -t=false"
run: CELESTIA_LOG_LEVEL=FATAL nix develop --command bash -c "just mcr native test.local -t=false"
Loading

0 comments on commit 5a9f7b9

Please sign in to comment.