Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: npm package #162

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix binary workflow for linux
  • Loading branch information
mara-schulke committed Nov 24, 2023
commit 0a479d7f3141ab9f6249e8cbcc5898c519b27406
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