Skip to content

Commit

Permalink
Prepare for release candidate.
Browse files Browse the repository at this point in the history
  • Loading branch information
Icelk committed Jan 29, 2023
1 parent b0460a0 commit 7d9afb0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:
run: git clone https://github.com/Icelk/kvarn-search ../kvarn-search
- name: Clone kvarn-auth
run: git clone https://github.com/Icelk/kvarn-auth ../kvarn-auth
- name: Compiling
run: cargo build --release -F bin --bin moella
- name: Compile
run: cargo build --profile distr -F bin --bin moella
- name: Upload bin artefact
uses: actions/upload-artifact@v3
with:
name: moella
path: target/release/moella
path: target/distr/moella
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ clap = { version = "4.1.4", features = ["cargo"], optional = true }
[features]
default = []
bin = ["env_logger", "clap", "tokio/rt-multi-thread", "tokio/macros"]

[profile.distr]
inherits = "release"
strip = true
lto = true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $ cargo install moella
```

There are also builds available for Linux in [Github Actions](https://github.com/Icelk/moella/actions),
and possibly for other platforms under `Releases` (yet to be determined).
and for other platforms under `Releases`.

# Development

Expand Down
9 changes: 9 additions & 0 deletions build-osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
# You have to have the following in your ~/.cargo/config.toml
# and have installed osxcross!
# [target.x86_64-apple-darwin]
# linker = "x86_64-apple-darwin14-clang"
# ar = "x86_64-apple-darwin14-ar"

export CC=o64-clang
cargo build --profile distr --target x86_64-apple-darwin -F bin --bin moella

0 comments on commit 7d9afb0

Please sign in to comment.