Sort stellar_cli_versions by version after every mutation
#46
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| 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 |