-
Notifications
You must be signed in to change notification settings - Fork 1
90 lines (74 loc) · 2.46 KB
/
create-cluster-compare.yml
File metadata and controls
90 lines (74 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: create cluster Charon parity
on:
push:
branches: ["main"]
paths:
- "**/*.rs"
- "**/Cargo.toml"
- "Cargo.lock"
- "scripts/create-cluster-compare.sh"
- ".github/workflows/create-cluster-compare.yml"
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
paths:
- "**/*.rs"
- "**/Cargo.toml"
- "Cargo.lock"
- "scripts/create-cluster-compare.sh"
- ".github/workflows/create-cluster-compare.yml"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
actions: read
env:
CHARON_VERSION: v1.7.1
CHARON_URL: https://github.com/ObolNetwork/charon/releases/download/v1.7.1/charon-v1.7.1-linux-amd64.tar.gz
jobs:
create-cluster-compare:
name: create cluster Charon parity
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Cache charon binary
id: cache-charon
uses: actions/cache@v4
with:
path: bin/charon
key: charon-${{ env.CHARON_VERSION }}-linux-amd64
- name: Install charon
if: steps.cache-charon.outputs.cache-hit != 'true'
run: ./scripts/dkg-runner/ci/install-charon.sh bin
- name: Verify charon
run: ./bin/charon version
- name: Cache cargo registry and target
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
- name: Update apt package list
run: sudo apt-get update
- name: Install protobuf
uses: awalsh128/cache-apt-pkgs-action@acb598e5ddbc6f68a970c5da0688d2f3a9f04d05 # v1.6.0
with:
packages: protobuf-compiler=3.21.12*
version: 3.21.12
- name: Install oas3-gen
run: cargo install oas3-gen@0.24.0
- name: Build pluto
run: cargo build -p pluto-cli
- name: Run create cluster comparison
env:
CHARON_BIN: ${{ github.workspace }}/bin/charon
PLUTO_BIN: ${{ github.workspace }}/target/debug/pluto
WORK_DIR: ${{ github.workspace }}/create-cluster-compare
run: ./scripts/create-cluster-compare.sh
- name: Upload work dir on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: create-cluster-compare-${{ github.run_id }}
path: create-cluster-compare
if-no-files-found: warn
retention-days: 7