Skip to content

Commit

Permalink
add config to build binary
Browse files Browse the repository at this point in the history
  • Loading branch information
digizeph committed Dec 18, 2023
1 parent 47157c8 commit 16adc1e
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 13 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release

permissions:
contents: write

on:
push:
tags:
- v[0-9]+.*

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
with:
changelog: CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }}

upload-assets:
needs: create-release
strategy:
matrix:
include:
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: universal-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: monocle
target: ${{ matrix.target }}
token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog

All notable changes to this project will be documented in this file.

## v0.5.2-beta.1 - 2023-12-18

* add GitHub actions config to build `monocle` binary for macOS (Universal), and linux (arm and amd64)
* add `vendored-openssl` optional feature flag to enable GitHub actions builds for different systems.
* move `monocle` binary to `bin` directory
30 changes: 17 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "monocle"
version = "0.5.1"
version = "0.5.2-beta.1"
authors = ["Mingwei Zhang <mingwei@bgpkit.com>"]
edition = "2021"
readme = "README.md"
Expand All @@ -14,34 +14,38 @@ keywords = ["bgp", "bgpkit", "mrt"]

[[bin]]
name = "monocle"
path = "src/monocle.rs"
path = "src/bin/monocle.rs"

[dependencies]
bgpkit-broker = "0.6.2"
bgpkit-parser = "0.9.2"
clap = { version = "4.1.6", features = ["derive"] }
bgpkit-parser = "0.9.4"
clap = { version = "4.1", features = ["derive"] }
itertools= "0.12"
rayon = "1.5.1"
rayon = "1.8"
tracing = "0.1"
tracing-subscriber = "0.3"
ipnetwork = {version= "0.20.0", default-features=false}
serde={version="1.0", features=["derive"]}
serde_json = "1.0"
chrono = "0.4"
chrono-humanize = "0.2.1"
chrono-humanize = "0.2"
anyhow = "1.0"
tabled = "0.12"
config = {version = "0.13.1", features = ["toml"]}
tabled = "0.14"
config = {version = "0.13", features = ["toml"]}
dirs = "5"
rusqlite = { version = "0.29.0", features = ["bundled"] }
ureq = {version="2.6.2", features=["json"]}
regex = "1.6.0"
oneio = "0.13"
rusqlite = { version = "0.30", features = ["bundled"] }
ureq = {version="2.9", features=["json"]}
regex = "1.10"
oneio = "0.15.8"
rpki = {version= "0.16.1", features = ["repository"]}
radar-rs = "0.0.2"

# progress bar
indicatif = "0.17.0"

openssl = { version = "0.10", features = ["vendored"], optional = true }

[features]
scouter = []
default = []
# vendored openssl
vendored-openssl = ["openssl"]
File renamed without changes.

0 comments on commit 16adc1e

Please sign in to comment.