Update CI: warp runnner to use snapshot and use warm (#9217)

Update the ci workflow to use warpbuild snapshot image and test suit uses `Swatinew/rust-cache` to utilize warpbuild cache


  


Co-Authored-By: lemon <snyxmk@gmail.com>
This commit is contained in:
Sayan Mallick
2026-05-01 05:35:17 +05:30
committed by GitHub
parent effcd08223
commit 5384ab8d67
3 changed files with 109 additions and 19 deletions

View File

@@ -0,0 +1,63 @@
name: Bake warpbuild snapshot (lighthouse-ubuntu-latest)
on:
workflow_dispatch:
schedule:
# Every week (Sunday at 00:00 UTC)
- cron: "0 0 * * 0"
pull_request:
branches: [stable, unstable]
paths:
- '.github/workflows/warpbuild-ubuntu-latest-snapshot.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
bake:
runs-on: warp-ubuntu-latest-x64-8x
steps:
- name: Install system deps
run: |
set -euxo pipefail
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends \
pkg-config \
libssl-dev \
build-essential \
cmake \
clang \
llvm-dev \
libclang-dev \
protobuf-compiler \
git \
gcc \
g++ \
make
- name: Install Rust toolchain (stable)
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt,clippy
- name: Install cargo bins
run: |
cargo install --locked cargo-nextest
cargo install --locked cargo-audit
cargo install --locked cargo-deny
cargo install --locked cargo-sort
cargo install --locked cargo-hack
- name: Install Java (Temurin 21)
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Save snapshot
uses: WarpBuilds/snapshot-save@v1
with:
alias: 'lighthouse-ubuntu-latest-v1'
fail-on-error: true
wait-timeout-minutes: 60