-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (50 loc) · 1.75 KB
/
Copy pathbuild.yml
File metadata and controls
53 lines (50 loc) · 1.75 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
---
name: build
on:
workflow_call:
permissions:
contents: read
jobs:
smoke-build:
name: build & smoke-test newest image
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
enable-cache: true
- name: resolve newest pair
id: pair
run: |
cli="$(./scripts/newest_pair.py --stellar-cli-version)"
# The newest pair is a fully-qualified pin: <label>@sha256:<digest>.
pin="$(./scripts/newest_pair.py --rust-version)"
rust="${pin%@*}"
digest="${pin#*@}"
tag="$(./scripts/tag_names.py \
--stellar-cli-version "$cli" --rust-version "$rust")"
{
echo "cli=$cli"
echo "rust=$rust"
echo "digest=$digest"
echo "image=stellar-cli:$tag"
} >> "$GITHUB_OUTPUT"
- name: build image
run: |
./scripts/build_image.py \
--stellar-cli-version "${{ steps.pair.outputs.cli }}" \
--rust-version "${{ steps.pair.outputs.rust }}" \
--rust-image-digest "${{ steps.pair.outputs.digest }}"
- name: smoke test
run: |
./scripts/smoke_test_image.py \
--image "${{ steps.pair.outputs.image }}" \
--stellar-cli-version "${{ steps.pair.outputs.cli }}" \
--rust-version "${{ steps.pair.outputs.rust }}" \
--rust-image-digest "${{ steps.pair.outputs.digest }}"
- name: wasm reproducibility
run: |
./scripts/repro_test.py \
--image "${{ steps.pair.outputs.image }}"