Skip to content

Replace per-entry default_rust with top-level default_distro. (#12) #45

Replace per-entry default_rust with top-level default_distro. (#12)

Replace per-entry default_rust with top-level default_distro. (#12) #45

Workflow file for this run

---
name: build
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
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: resolve newest pair
id: pair
run: |
cli="$(./scripts/newest-pair.sh --stellar-cli-version)"
rust="$(./scripts/newest-pair.sh --rust-version)"
tag="$(./scripts/tag-names.sh \
--stellar-cli-version "$cli" --rust-version "$rust")"
{
echo "cli=$cli"
echo "rust=$rust"
echo "image=stellar-cli:$tag"
} >> "$GITHUB_OUTPUT"
- name: build image
run: |
./scripts/build-image.sh \
--stellar-cli-version "${{ steps.pair.outputs.cli }}" \
--rust-version "${{ steps.pair.outputs.rust }}"
- name: smoke test
run: |
./scripts/smoke-test-image.sh \
--image "${{ steps.pair.outputs.image }}" \
--stellar-cli-version "${{ steps.pair.outputs.cli }}" \
--rust-version "${{ steps.pair.outputs.rust }}"
- name: wasm reproducibility
run: |
./scripts/repro-test.sh \
--image "${{ steps.pair.outputs.image }}"
complete:
if: always()
needs:
- smoke-build
runs-on: ubuntu-24.04
steps:
- name: check upstream jobs
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1