Skip to content

Fix doc tests (#1387) #50

Fix doc tests (#1387)

Fix doc tests (#1387) #50

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 risc0
uses: ./.github/actions/install-risc0
with:
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