mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 20:57:10 +00:00
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>
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
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
|