Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
pull_request:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
CI: "true"
FORCE_COLOR: "1"

jobs:
ci:
name: Rust checks
runs-on: ubuntu-latest
timeout-minutes: 45

steps:
- name: Check out repository
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with:
persist-credentials: false

- name: Activate Hermit
uses: cashapp/activate-hermit@cea9af7913204a965fd488637a8d1811bba2e616 # v1
with:
cache: "true"

- name: Restore Rust cache
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
workspaces: . -> target

- name: Run repository CI
run: just ci
7 changes: 6 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ protos:

# Download all protos without transitive deps (-i) to avoid pulling in
# ~250 arcade/UI/franklin protos via client_renderable.proto
bin/schema-registry get --save-to=protos -i \
if ! command -v schema-registry >/dev/null 2>&1; then
echo "schema-registry is not a public Hermit package; install the internal CLI separately to refresh protos." >&2
exit 1
fi

schema-registry get --save-to=protos -i \
google/api/annotations.proto \
google/api/http.proto \
squareup/cash/kgoose/api/v3/tool_endpoint_service.proto \
Expand Down
1 change: 0 additions & 1 deletion bin/.schema-registry-0.127.1.pkg

This file was deleted.

6 changes: 2 additions & 4 deletions bin/hermit.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
manage-git = false

github-token-auth {
}
sources = ["https://github.com/cashapp/hermit-packages.git"]
manage-git = true
1 change: 0 additions & 1 deletion bin/schema-registry

This file was deleted.

Loading