release #18
Workflow file for this run
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: Release | ||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
env: | ||
EXPECTED_BITCOIN_DA_ID: ${{ vars.EXPECTED_BITCOIN_DA_ID }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
jobs: | ||
linux_amd64_binary_extraction: | ||
needs: validate_DA_ID_format | ||
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.79.0 | ||
rustup default 1.79.0 | ||
- name: Install Cargo Binstall | ||
run: | | ||
source $HOME/.cargo/env | ||
cargo install --version 1.7.0 cargo-binstall | ||
- name: Install cargo-risczero | ||
run: | | ||
cargo binstall [email protected] --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: | ||
REPR_GUEST_BUILD: 1 | ||
run: | | ||
cargo build --release | ||
- name: Upload linux-amd64 Binary | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: citrea-${{ github.ref_name }}-linux-amd64 | ||
path: target/release/citrea | ||
release: | ||
needs: [ linux_amd64_binary_extraction] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download linux-amd64 Binary | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: citrea-${{ github.ref_name }}-linux-amd64 | ||
path: release | ||
- name: rename file | ||
run: | | ||
mv release/citrea release/citrea-${{ github.ref_name }}-linux-amd64 | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
release/citrea-${{ github.ref_name }}-linux-amd64 | ||
name: Release ${{ github.ref_name }} | ||
body: | | ||
This is the release for version ${{ github.ref_name }}. | ||
It includes: | ||
- citrea-${{ github.ref_name }}-linux-amd64 |