Skip to content

Commit

Permalink
Use warpbuild for everything (#2628)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkleeman authored Feb 5, 2025
1 parent d989c64 commit d641697
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
jobs:
workspace-hack-check:
name: Check workspace-hack
runs-on: ubuntu-latest
runs-on: warp-ubuntu-latest-x64-4x
env:
RUSTFLAGS: -D warnings
steps:
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:

restate-ui:
name: Validate Restate UI artifact
runs-on: ubuntu-latest
runs-on: warp-ubuntu-latest-arm64-2x
permissions:
contents: read
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
jobs:
advisories:
timeout-minutes: 10
runs-on: ubuntu-latest
runs-on: warp-ubuntu-latest-x64-2x
continue-on-error: true
steps:
- uses: actions/checkout@v4
Expand All @@ -26,7 +26,7 @@ jobs:

bans:
timeout-minutes: 10
runs-on: ubuntu-latest
runs-on: warp-ubuntu-latest-x64-2x
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

docker-cli:
name: Push CLI Docker image
runs-on: ubuntu-latest
runs-on: warp-ubuntu-latest-x64-4x
env:
REPOSITORY_OWNER: ${{ github.repository_owner }}
GHCR_REGISTRY: "ghcr.io"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ env:

jobs:
release-helm-chart:
runs-on: ubuntu-latest
runs-on: warp-ubuntu-latest-x64-2x
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
publish-homebrew-formula:
# homebrew only really has a single 'latest' version, so we must skip prereleases
if: ${{ !fromJson(inputs.plan).announcement_is_prerelease }}
runs-on: "ubuntu-20.04"
runs-on: "warp-ubuntu-latest-x64-2x"
env:
GITHUB_USER: "Restate bot"
GITHUB_EMAIL: "code+bot@restate.dev"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
permissions:
contents: read
packages: read
runs-on: ubuntu-latest
runs-on: warp-ubuntu-latest-x64-2x
strategy:
matrix:
app_name:
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:

publish-npm-base:
needs: publish-npm-binaries
runs-on: ubuntu-latest
runs-on: warp-ubuntu-latest-x64-2x
strategy:
matrix:
app_name:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
release-notes:
permissions:
contents: write
runs-on: ubuntu-latest
runs-on: warp-ubuntu-latest-x64-2x
steps:
- name: Amend GitHub Release
shell: bash
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ on:
jobs:
# Run 'dist plan' (or host) to determine what tasks we need to do
plan:
runs-on: "ubuntu-20.04"
runs-on: "warp-ubuntu-latest-arm64-2x"
outputs:
val: ${{ steps.plan.outputs.manifest }}
tag: ${{ !github.event.pull_request && github.ref_name || '' }}
Expand Down Expand Up @@ -212,7 +212,7 @@ jobs:
- plan
- build-local-artifacts
- custom-ci
runs-on: "ubuntu-20.04"
runs-on: "warp-ubuntu-latest-arm64-2x"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json
Expand Down Expand Up @@ -274,7 +274,7 @@ jobs:
if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.custom-notarize.result == 'skipped' || needs.custom-notarize.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') && (needs.custom-ci.result == 'skipped' || needs.custom-ci.result == 'success') }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: "ubuntu-20.04"
runs-on: "warp-ubuntu-latest-arm64-2x"
outputs:
val: ${{ steps.host.outputs.manifest }}
steps:
Expand Down Expand Up @@ -334,7 +334,7 @@ jobs:
needs:
- plan
- host
runs-on: "ubuntu-20.04"
runs-on: "warp-ubuntu-latest-arm64-2x"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PLAN: ${{ needs.plan.outputs.val }}
Expand Down Expand Up @@ -426,7 +426,7 @@ jobs:
# still allowing individual publish jobs to skip themselves (for prereleases).
# "host" however must run to completion, no skipping allowed!
if: ${{ always() && needs.host.result == 'success' && (needs.publish-npm.result == 'skipped' || needs.publish-npm.result == 'success') && (needs.custom-homebrew.result == 'skipped' || needs.custom-homebrew.result == 'success') && (needs.custom-docker-release.result == 'skipped' || needs.custom-docker-release.result == 'success') && (needs.custom-npm.result == 'skipped' || needs.custom-npm.result == 'success') && (needs.custom-release-notes.result == 'skipped' || needs.custom-release-notes.result == 'success') }}
runs-on: "ubuntu-20.04"
runs-on: "warp-ubuntu-latest-arm64-2x"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand Down
3 changes: 3 additions & 0 deletions dist-workspace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ contents = "write"
[dist.dependencies.homebrew]
protobuf = "*"

[dist.github-custom-runners.global]
runner = "warp-ubuntu-latest-arm64-2x"

[dist.github-custom-runners.aarch64-apple-darwin]
runner = "warp-macos-latest-arm64-6x"

Expand Down

0 comments on commit d641697

Please sign in to comment.