From 3f00bcf484fa32c3f7cbaf018881019910f108d9 Mon Sep 17 00:00:00 2001 From: Marcel Moura Date: Tue, 19 Dec 2023 18:26:46 -0300 Subject: [PATCH] fixup! ci: build devnet image --- .github/workflows/build.yml | 101 +++++++++++++++++------------------- 1 file changed, 48 insertions(+), 53 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 07fcdefe9..9456d86ff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,10 +8,6 @@ on: - v* branches: - main - workflow_run: - workflows: ["Build devnet"] - types: - - completed concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -35,60 +31,59 @@ jobs: with: submodules: recursive - - name: 📦 Install protoc - run: sudo apt update && sudo apt install -y protobuf-compiler libprotobuf-dev - - - uses: actions/cache@v3 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - offchain/target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - restore-keys: ${{ runner.os }}-cargo- - - - name: Install cargo sweep - run: cargo install cargo-sweep - continue-on-error: true - - - name: Install cargo cache - run: cargo install cargo-cache - continue-on-error: true - - - name: Set sweep timestamp - run: cargo sweep -s - - - name: Build binaries and tests - run: cargo build --all-targets - - - name: Clean old build files - run: cargo sweep -f - - - name: Clean dependencies source files - run: cargo cache --autoclean - - - name: Run tests - run: cargo test - - - name: Generate GraphQL schema - run: ./target/debug/generate-schema - - - name: Upload GraphQL schema - uses: actions/upload-artifact@v3 - with: - name: graphql-schema - path: offchain/schema.graphql - if-no-files-found: error + # - name: 📦 Install protoc + # run: sudo apt update && sudo apt install -y protobuf-compiler libprotobuf-dev + # + # - uses: actions/cache@v3 + # with: + # path: | + # ~/.cargo/bin/ + # ~/.cargo/registry/index/ + # ~/.cargo/registry/cache/ + # ~/.cargo/git/db/ + # offchain/target/ + # key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + # restore-keys: ${{ runner.os }}-cargo- + # + # - name: Install cargo sweep + # run: cargo install cargo-sweep + # continue-on-error: true + # + # - name: Install cargo cache + # run: cargo install cargo-cache + # continue-on-error: true + # + # - name: Set sweep timestamp + # run: cargo sweep -s + # + # - name: Build binaries and tests + # run: cargo build --all-targets + # + # - name: Clean old build files + # run: cargo sweep -f + # + # - name: Clean dependencies source files + # run: cargo cache --autoclean + # + # - name: Run tests + # run: cargo test + # + # - name: Generate GraphQL schema + # run: ./target/debug/generate-schema + # + # - name: Upload GraphQL schema + # uses: actions/upload-artifact@v3 + # with: + # name: graphql-schema + # path: offchain/schema.graphql + # if-no-files-found: error - name: Docker meta id: docker_meta uses: docker/metadata-action@v5 with: images: cartesi/rollups-devnet - tags: | - type=raw,value=devel + tags: type=raw,value=devel - name: Login to Docker Hub uses: docker/login-action@v3 @@ -105,7 +100,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - uses: depot/setup-action@v1 - - name: Build and push docker image + - name: Build devnet id: docker_build uses: depot/bake-action@v1 with: