Skip to content

Commit

Permalink
Fix binary workflow for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mara-schulke committed Nov 24, 2023
1 parent 0ed7abc commit 0a479d7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/bin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ on:
push:
branches: ["mara/npx"]

env:
PKG_CONFIG_ALLOW_CROSS: 1

jobs:
build:
name: Build and Release Binaries
name: Build Binaries
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -41,6 +44,13 @@ jobs:
- name: Cache
uses: Swatinem/rust-cache@v2

- name: Setup Runner
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
export PKG_CONFIG_PATH=/usr/arm-linux-gnueabihf/lib/pkgconfig
- name: Build
run: cargo build --release --target ${{ matrix.target }}

Expand All @@ -51,6 +61,7 @@ jobs:
path: target/${{ matrix.target }}/release/*

publish:
name: Publish Binaries
needs: build
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion registry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description = "Registry for buffrs, a modern protocol buffer package manager"
license = "Apache-2.0"

[dependencies]
buffrs = { path = "../", version = "0.6.4" }
buffrs = { path = "../", version = "0.7" }
prost = "0.12.1"
tonic = "0.10.2"
clap = { version = "4.3", features = ["cargo", "derive", "env"] }
Expand Down

0 comments on commit 0a479d7

Please sign in to comment.