Add stacked changes docs #6255
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: rust | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ '**' ] | |
| merge_group: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: "-D warnings" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| test_suite: | |
| - name: tests | |
| script: run-tests.sh | |
| - name: tests-incubating | |
| script: run-tests-incubating.sh | |
| name: CI (${{ matrix.test_suite.name }}) | |
| steps: | |
| - name: Free up disk space | |
| shell: bash | |
| run: | | |
| set -eu | |
| CLEANUP_DIRS=( | |
| "/usr/local/lib/android" | |
| "/usr/share/dotnet" | |
| "/usr/share/swift" | |
| "/usr/local/.ghcup" | |
| ) | |
| for dir in "${CLEANUP_DIRS[@]}"; do | |
| if [[ -d "$dir" ]]; then | |
| echo "removing ${dir}" | |
| sudo rm -rf "$dir" | |
| fi | |
| done | |
| - name: Setup BuildX | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get tags | |
| run: git fetch --tags origin | |
| - name: Build dev image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: Dockerfile | |
| cache-from: type=gha,scope=${{ matrix.test_suite.name }} | |
| cache-to: type=gha,mode=max,scope=${{ matrix.test_suite.name }} | |
| target: dev-ci | |
| tags: josh-ci-dev:latest | |
| push: false | |
| load: true | |
| - name: Run tests | |
| run: >- | |
| docker run --rm | |
| -v ${{ github.workspace }}:/github/workspace | |
| -w /github/workspace | |
| -e SCCACHE_BUCKET=josh-project-cache | |
| -e SCCACHE_ENDPOINT=https://19f2dfdd7c93980184be5e5809e8b252.r2.cloudflarestorage.com | |
| -e SCCACHE_REGION=auto | |
| -e AWS_ACCESS_KEY_ID=${{ secrets.R2_ACCESS_KEY_ID }} | |
| -e AWS_SECRET_ACCESS_KEY=${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| josh-ci-dev:latest | |
| bash /github/workspace/.github/workflows/scripts/${{ matrix.test_suite.script }} |