Skip to content

Commit

Permalink
Fix release build
Browse files Browse the repository at this point in the history
  • Loading branch information
the2pizza committed Jan 7, 2025
1 parent 04665d8 commit 5c2e095
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,46 @@ env:
DOCKER_TAG: latest

jobs:
build-agent:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
default: true
override: true

- name: Install protobuf-compiler
run: sudo apt-get install -y protobuf-compiler

- name: Build
run: cargo build --no-default-features --bin agent --features agent

build-api:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
default: true
override: true

- name: Build
run: cargo build --bin api --no-default-features --features api

release:
name: Release
needs: [build-api, build-agent]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -56,7 +94,7 @@ jobs:

publish:
name: Push Docker image
needs: release
needs: [build-api, build-agent]
runs-on: ubuntu-latest
permissions:
packages: write
Expand Down

0 comments on commit 5c2e095

Please sign in to comment.