Skip to content

Commit

Permalink
Fix cross compilation (#324)
Browse files Browse the repository at this point in the history
* Upgrade deps

* Update depandabot

* Update CI

* Ignore test that fails on CI

* Use rustls for reqwest

* Fix cross compilation

* Update README CI badge
  • Loading branch information
adumbidiot authored Aug 16, 2024
1 parent 09a47eb commit 912fb04
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 10 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ version = "0.0.2"
authors = [ "adumbidiot <[email protected]>" ]
edition = "2021"
publish = false
license = "MIT"

[dependencies]
anyhow = "1.0.86"
argh = "0.1.12"
audiopus_sys = { version = "0.2.2", default-features = false }
camino = { version = "1.1.8", features = [ "serde1" ] }
# clokwerk = "0.4.0"
clokwerk = { git = "https://github.com/mdsherry/clokwerk" }
Expand All @@ -31,6 +33,12 @@ toml = "0.8.19"
zalgo = { git = "https://github.com/adumbidiot/zalgo-rs" }
poise = "0.6.1"

[features]
default = []
pkg-config = [
"audiopus_sys/pkg-config",
]

[profile.release]
lto = "fat"
codegen-units = 1
Expand All @@ -40,6 +48,7 @@ debug-assertions = false
strip = "symbols"

[patch.crates-io]
audiopus_sys = { git = "https://github.com/adumbidiot/audiopus_sys", branch = "pkg-config" }

[workspace]
members = [
Expand All @@ -48,7 +57,7 @@ members = [

[package.metadata.deb]
name = "quarky"
depends = ""
depends = [ "libopus0", "yt-dlp" ]
assets = [
[ "target/release/quarky", "usr/bin/", "700" ],
[ "deb-config.toml", "etc/quarky/config.toml", "600" ],
Expand All @@ -61,8 +70,3 @@ maintainer-scripts = "debian/"
[package.metadata.deb.systemd-units]
enable = false
start = false

[package.metadata.rpi-deploy]
targets = [
"aarch64-unknown-linux-gnu",
]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ HOST = dagger.local
.PHONY: deploy

deploy:
debian-sysroot-build --target ${TARGET} --package ${PACKAGE} --install-package libc6 --install-package libc6-dev --install-package linux-libc-dev --install-package libgcc-12-dev
debian-sysroot-build --target ${TARGET} --package ${PACKAGE} --features pkg-config --install-package libc6 --install-package libc6-dev --install-package linux-libc-dev --install-package libgcc-12-dev --install-package libopus-dev
cargo deb --target ${TARGET} --no-build --no-strip
deploy-deb target/${TARGET}/debian/${DEB_NAME} ${HOST}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# quarky
![CI](https://github.com/adumbidiot/quarky/workflows/CI/badge.svg)
[![CI](https://github.com/adumbidiot/quarky/actions/workflows/CI.yaml/badge.svg)](https://github.com/adumbidiot/quarky/actions/workflows/CI.yaml)

## Description
Heyo, it's your boi Nate D the hip hop star. you may know me by my alias: adumbidiot. I present to you a life changing discord bot known as "Quarky".
Expand Down

0 comments on commit 912fb04

Please sign in to comment.