Set ZK constants in compile time (#1613) #168
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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.81.0 | |
rustup default 1.81.0 | |
- name: Install risc0 | |
uses: ./.github/actions/install-risc0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Project | |
run: | | |
cargo build --features testing | |
- name: Copy binary to build-push/nightly | |
run: | | |
cp target/debug/citrea docker/build-push/nightly/citrea | |
chmod +x docker/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: ./docker/build-push/nightly/Dockerfile | |
context: ./docker/build-push/nightly | |
tags: ${{ vars.DOCKERHUB_USERNAME }}/citrea-test:${{ env.IMAGE_TAG }} | |
platforms: linux/amd64 | |
push: true | |
load: false | |
provenance: false |