Skip to content

Commit

Permalink
Release with Arch
Browse files Browse the repository at this point in the history
  • Loading branch information
the2pizza committed Jan 3, 2025
1 parent c0a0e6d commit 63c4c66
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,32 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
default: true
override: true

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

- name: Build
run: cargo build --all --release
run: cargo build --all --release --features agent,api

- name: Get architecture
id: arch
run: echo "ARCH=$(uname -m)" >> $GITHUB_ENV

- name: Rename binaries with architecture
run: |
mv target/release/api target/release/api-$ARCH
mv target/release/agent target/release/agent-$ARCH
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
target/release/api
target/release/agent
target/release/api-$ARCH
target/release/agent-$ARCH
README.md
config-agent-example.toml
config-api-example.toml
Expand Down

0 comments on commit 63c4c66

Please sign in to comment.