Prepare Anvil 0.2.4 release #369
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: Anvil CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| packages: write | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install Protoc | |
| uses: arduino/setup-protoc@v2 | |
| with: | |
| version: "25.x" | |
| - name: Cache Cargo dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Install Fission CLI | |
| run: | | |
| if ! command -v fission >/dev/null 2>&1; then | |
| cargo install cargo-fission --version 0.4.1 --locked | |
| fi | |
| - name: Shared release gates | |
| run: ./scripts/release-gates.sh | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Docker Image for Testing | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: anvil/Dockerfile | |
| load: true | |
| push: false | |
| tags: anvil:test | |
| platforms: linux/amd64 | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Run Release-Gated Docker E2E Tests | |
| if: github.event_name == 'pull_request' || (github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))) | |
| env: | |
| ANVIL_IMAGE: anvil:test | |
| ANVIL_RUN_DOCKER_E2E: "1" | |
| ANVIL_RUN_HF_E2E: "1" | |
| run: cargo test -p anvil-server --test docker_cluster_test --test hf_ingestion_e2e -- --nocapture --test-threads=1 |