Skip to content

Commit fb93452

Browse files
authored
Merge pull request #54 from HEnquist/updateci
Updateci
2 parents 80f4e70 + 9bc3a03 commit fb93452

File tree

3 files changed

+77
-58
lines changed

3 files changed

+77
-58
lines changed

.github/workflows/ci_test.yml

Lines changed: 46 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ on: [push, pull_request]
33
name: CI test and lint
44

55
jobs:
6-
check:
7-
name: Check
6+
check_lint_linux:
7+
name: Check test and lint Linux
88
runs-on: ubuntu-latest
99
container: ubuntu:19.10
1010
steps:
@@ -23,6 +23,7 @@ jobs:
2323
profile: minimal
2424
toolchain: stable
2525
override: true
26+
components: rustfmt, clippy
2627

2728
- name: Install Alsa devel
2829
run: apt-get install libasound2-dev -y
@@ -41,8 +42,27 @@ jobs:
4142
command: check
4243
args: --no-default-features
4344

44-
check_cross:
45-
name: CheckCross
45+
- name: Run cargo test
46+
uses: actions-rs/cargo@v1
47+
with:
48+
command: test
49+
50+
- name: Run cargo fmt
51+
uses: actions-rs/cargo@v1
52+
with:
53+
command: fmt
54+
args: --all -- --check
55+
56+
- name: Run cargo clippy
57+
uses: actions-rs/cargo@v1
58+
with:
59+
command: clippy
60+
args: -- -D warnings
61+
62+
63+
64+
check_arm:
65+
name: Check and test Linux arm
4666
runs-on: ubuntu-latest
4767
steps:
4868
- name: Checkout sources
@@ -74,17 +94,10 @@ jobs:
7494
args: --target armv7-unknown-linux-gnueabihf --no-default-features --features alsa-backend --features socketserver
7595

7696

77-
test:
78-
name: Test Suite
79-
runs-on: ubuntu-latest
80-
container: ubuntu:19.10
97+
check_lint_windows:
98+
name: Check and test Windows
99+
runs-on: windows-latest
81100
steps:
82-
- name: Update package list
83-
run: apt-get update
84-
85-
- name: Install utils
86-
run: apt-get install curl wget -y
87-
88101
- name: Checkout sources
89102
uses: actions/checkout@v2
90103

@@ -95,28 +108,22 @@ jobs:
95108
toolchain: stable
96109
override: true
97110

98-
- name: Install Alsa devel
99-
run: apt-get install libasound2-dev -y
100-
101-
- name: Install PulseAudio
102-
run: apt-get install libpulse0 libpulse-dev -y
111+
- name: Run cargo check
112+
uses: actions-rs/cargo@v1
113+
with:
114+
command: check
115+
args: --no-default-features --features cpal-backend
103116

104117
- name: Run cargo test
105118
uses: actions-rs/cargo@v1
106119
with:
107120
command: test
121+
args: --no-default-features --features cpal-backend
108122

109-
lints:
110-
name: Lints
111-
runs-on: ubuntu-latest
112-
container: ubuntu:19.10
123+
check_lint_macos:
124+
name: Check and test macOS
125+
runs-on: macos-latest
113126
steps:
114-
- name: Update package list
115-
run: apt-get update
116-
117-
- name: Install utils
118-
run: apt-get install curl wget -y
119-
120127
- name: Checkout sources
121128
uses: actions/checkout@v2
122129

@@ -126,22 +133,19 @@ jobs:
126133
profile: minimal
127134
toolchain: stable
128135
override: true
129-
components: rustfmt, clippy
130-
131-
- name: Install Alsa devel
132-
run: apt-get install libasound2-dev -y
133-
134-
- name: Install PulseAudio
135-
run: apt-get install libpulse0 libpulse-dev -y
136136

137-
- name: Run cargo fmt
137+
- name: Run cargo check
138138
uses: actions-rs/cargo@v1
139139
with:
140-
command: fmt
141-
args: --all -- --check
140+
command: check
141+
args: --no-default-features --features cpal-backend
142142

143-
- name: Run cargo clippy
143+
- name: Run cargo test
144144
uses: actions-rs/cargo@v1
145145
with:
146-
command: clippy
147-
args: -- -D warnings
146+
command: test
147+
args: --no-default-features --features cpal-backend
148+
149+
150+
151+

.github/workflows/publish.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,15 @@ jobs:
3939
command: build
4040
args: --release
4141

42+
- name: Compress
43+
run: tar -zcvf camilladsp.tar.gz -C target/release camilladsp
44+
4245
- name: Upload binaries to release
4346
uses: svenstaro/upload-release-action@v1-release
4447
with:
4548
repo_token: ${{ secrets.GITHUB_TOKEN }}
46-
file: target/release/camilladsp
47-
asset_name: camilladsp-linux-amd64
49+
file: camilladsp.tar.gz
50+
asset_name: camilladsp-linux-amd64.tar.gz
4851
tag: ${{ github.ref }}
4952

5053
arm:
@@ -74,12 +77,15 @@ jobs:
7477
env:
7578
RUSTFLAGS: "-C target-feature=+neon"
7679

80+
- name: Compress
81+
run: tar -zcvf camilladsp.tar.gz -C target/armv7-unknown-linux-gnueabihf/release camilladsp
82+
7783
- name: Upload binaries to release
7884
uses: svenstaro/upload-release-action@v1-release
7985
with:
8086
repo_token: ${{ secrets.GITHUB_TOKEN }}
81-
file: target/armv7-unknown-linux-gnueabihf/release/camilladsp
82-
asset_name: camilladsp-linux-armv7
87+
file: camilladsp.tar.gz
88+
asset_name: camilladsp-linux-armv7.tar.gz
8389
tag: ${{ github.ref }}
8490

8591
windows:
@@ -102,12 +108,15 @@ jobs:
102108
command: build
103109
args: --release --no-default-features --features cpal-backend --features socketserver
104110

111+
- name: Compress
112+
run: powershell Compress-Archive target/release/camilladsp.exe camilladsp.zip
113+
105114
- name: Upload binaries to release
106115
uses: svenstaro/upload-release-action@v1-release
107116
with:
108117
repo_token: ${{ secrets.GITHUB_TOKEN }}
109-
file: target/release/camilladsp.exe
110-
asset_name: camilladsp-windows-amd64.exe
118+
file: camilladsp.zip
119+
asset_name: camilladsp-windows-amd64.zip
111120
tag: ${{ github.ref }}
112121

113122
macos:
@@ -130,10 +139,13 @@ jobs:
130139
command: build
131140
args: --release --no-default-features --features cpal-backend --features socketserver
132141

142+
- name: Compress
143+
run: zip -j camilladsp.zip target/release/camilladsp
144+
133145
- name: Upload binaries to release
134146
uses: svenstaro/upload-release-action@v1-release
135147
with:
136148
repo_token: ${{ secrets.GITHUB_TOKEN }}
137-
file: target/release/camilladsp
138-
asset_name: camilladsp-macos-amd64
149+
file: camilladsp.zip
150+
asset_name: camilladsp-macos-amd64.zip
139151
tag: ${{ github.ref }}

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,21 +101,24 @@ These are the key dependencies for CamillDSP.
101101

102102
# Installing
103103

104-
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".
104+
The easiest way to install CamillaDSP is to download a pre-built binary. 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".
105105

106-
The following configurations are provided:
106+
These are compressed files containing a single executable file that is ready to run.
107107

108-
- `camilladsp-linux-amd64`: Linux on 64-bit Intel or AMD cpu. Supports Alsa and Pulseaudio.
109-
- `camilladsp-linux-armv7`: Linux on armv7 with neon, intended for Raspberry Pi but should also work on others. Supports Alsa.
110-
- `camilladsp-macos-amd64`: macOS on 64-bit Intel cpu. Supports CoreAudio.
111-
- `camilladsp-windows-amd64.exe`: Windows on 64-bit Intel or AMD cpu. Supports Wasapi.
108+
The following configurations are provided:
109+
| Filename | Description | Backends |
110+
|----------|-------------|----------|
111+
| `camilladsp-linux-amd64.tar.gz` | Linux on 64-bit Intel or AMD CPU | Alsa, Pulseaudio |
112+
| `camilladsp-linux-armv7.tar.gz` | Linux on Armv7 with Neon, intended for Raspberry Pi 2 and up but should also work on others | Alsa |
113+
| `camilladsp-macos-amd64.zip` | macOS on 64-bit Intel CPU | CoreAudio |
114+
| `camilladsp-windows-amd64.zip` | Windows on 64-bit Intel or AMD CPU | Wasapi |
112115

113116
All builds include the Websocket server.
114117

115-
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:
118+
The `.tar.gz`-files can be uncompressed with the `tar` comand:
116119

117120
```sh
118-
chmod a+x camilladsp-linux-amd64
121+
tar -xvf camilladsp-linux-amd64.tar.gz
119122
```
120123

121124

0 commit comments

Comments
 (0)