Skip to content

Remove dead RngDaService code (#1377) #42

Remove dead RngDaService code (#1377)

Remove dead RngDaService code (#1377) #42

name: nightly-build-and-push
on:
workflow_dispatch:
push:
branches:
- nightly
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IMAGE_TAG: ${{ github.sha }}
jobs:
linux_amd64_binary_extraction:
runs-on: ubicloud-standard-30
strategy:
matrix:
include:
- short_prefix: 1
short_prefix_value: "-short-prefix"
- short_prefix: 0
short_prefix_value: ""
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo apt update && sudo apt -y install curl gcc cpp cmake clang llvm
sudo apt -y autoremove && sudo apt clean && sudo rm -rf /var/lib/apt/lists/*
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
rustup install 1.79.0
rustup default 1.79.0
- name: Install Cargo Binstall
run: |
cargo install --version 1.7.0 cargo-binstall
- name: Install cargo-risczero
run: |
cargo binstall cargo-risczero@1.1.2 --no-confirm
- name: Install risc0-zkvm toolchain
run: cargo risczero install --version r0.1.79.0-2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build Project
env:
SHORT_PREFIX: ${{ matrix.short_prefix }}
run: |
cargo build --release
- name: Copy binary to build-push/nightly
run: |
cp target/release/citrea build-push/nightly/citrea
chmod +x build-push/nightly/citrea
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@v6
with:
file: ./build-push/nightly/Dockerfile
context: ./build-push/nightly
tags: ${{ vars.DOCKERHUB_USERNAME }}/citrea-test:${{ env.IMAGE_TAG }}${{ matrix.short_prefix_value }}
platforms: linux/amd64
push: true
load: false
provenance: false