Skip to content

Commit

Permalink
Move binary builds to buildjet and add arm build (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwylde authored Sep 4, 2024
1 parent 704e3fa commit abbde01
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
branches:
- '*_build'

env:
REFINERY_CONFIG: postgres://arroyo:arroyo@localhost:5432/arroyo
Expand All @@ -17,8 +19,8 @@ jobs:
matrix:
# see https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
config:
- { runner: ubuntu-22.04, protoc: linux-x86_64, artifact: linux-x86_64 }
# TODO: add linux arm runner, maybe ubicloud e.g. - { runner: ubicloud-standard-8-arm, protoc: linux-aarch_64 , artifact: linux-arm64 } ?
- { runner: buildjet-32vcpu-ubuntu-2204, protoc: linux-x86_64, artifact: linux-x86_64 }
- { runner: buildjet-32vcpu-ubuntu-2204-arm, protoc: linux-aarch_64, artifact: linux-arm64 }
runs-on: ${{ matrix.config.runner }}
services:
postgres:
Expand All @@ -44,14 +46,17 @@ jobs:
run: |
wget https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-${{ matrix.config.protoc }}.zip
unzip protoc*.zip && sudo mv bin/protoc /usr/local/bin
- name: Run DB migrations
- name: Update rust
run: |
rustup update
- name: Run DB migrations
run: |
cargo install --debug refinery_cli --version $REFINERY_VERSION
refinery migrate -e REFINERY_CONFIG -p crates/arroyo-api/migrations
- name: Run frontend build
run: cd webui && pnpm install && pnpm build
- name: Build Arroyo
run: cargo build --release --package arroyo
run: cargo build --release --package arroyo && strip target/release/arroyo
- uses: actions/upload-artifact@v4
with:
name: arroyo-${{ matrix.config.artifact }}
Expand Down Expand Up @@ -90,7 +95,7 @@ jobs:
- name: Run frontend build
run: cd webui && pnpm install && pnpm build
- name: Build Arroyo
run: cargo build --release --package arroyo
run: cargo build --release --package arroyo && strip target/release/arroyo
- uses: actions/upload-artifact@v4
with:
name: arroyo-${{ matrix.config.artifact }}
Expand Down

0 comments on commit abbde01

Please sign in to comment.