Skip to content

Commit

Permalink
Fix arm build, add binaries to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
HEnquist committed Jul 2, 2020
1 parent 11e0380 commit 8a47753
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ jobs:
command: build
use-cross: true
args: --release --target armv7-unknown-linux-gnueabihf --no-default-features --features alsa-backend --features socketserver
env:
RUSTFLAGS: "-C target-feature=+neon"

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/camilladsp
file: target/armv7-unknown-linux-gnueabihf/release/camilladsp
asset_name: camilladsp-linux-armv7
tag: ${{ github.ref }}

Expand Down Expand Up @@ -105,7 +107,7 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/camilladsp.exe
asset_name: camilladsp-windows-amd64
asset_name: camilladsp-windows-amd64.exe
tag: ${{ github.ref }}

macos:
Expand Down
7 changes: 6 additions & 1 deletion Cross.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
[target.armv7-unknown-linux-gnueabihf]
image = "cross/armv7:v1"
image = "cross/armv7:v1"

[target.armv7-unknown-linux-gnueabihf.env]
passthrough = [
"RUSTFLAGS",
]
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ The full configuration is given in a yaml file.
- **[Usage example: crossover for 2-way speakers](#usage-example-crossover-for-2-way-speakers)**
- **[Dependencies](#dependencies)**

**[Installing](#installing)**

**[Building](#building)**
- **[Build with standard features](#build-with-standard-features)**
- **[Customized build](#customized-build)**
Expand Down Expand Up @@ -96,6 +98,27 @@ These are the key dependencies for CamillDSP.
* https://crates.io/crates/cpal - Wasapi and CoreAudio audio backends
* https://crates.io/crates/serde_yaml - Config file reading


# Installing

The easiest way to install CamillaDSP is to download a pre-built binary. This is a single executable file that is ready to run. Binaries for each release are available for the most common systems. See the ["Releases"](https://github.com/HEnquist/camilladsp/releases) page. To see the files click "Assets".

The following configurations are provided:

- `camilladsp-linux-amd64`: Linux on 64-bit Intel or AMD cpu. Supports Alsa and Pulseaudio.
- `camilladsp-linux-armv7`: Linux on armv7 with neon, intended for Raspberry Pi but should also work on others. Supports Alsa.
- `camilladsp-macos-amd64`: macOS on 64-bit Intel cpu. Supports CoreAudio.
- `camilladsp-windows-amd64.exe`: Windows on 64-bit Intel or AMD cpu. Supports Wasapi.

All builds include the Websocket server.

On Linux and macOS the file needs to be marked as executable after downloading. This can be done in the terminal with the `chmod` command, for example:

```sh
chmod a+x camilladsp-linux-amd64
```


# Building

Use recent stable versions of rustc and cargo. The minimum rustc version is 1.40.0.
Expand Down

0 comments on commit 8a47753

Please sign in to comment.