Merge pull request #332 from HEnquist/next30 #75
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
linux: | |
name: Linux | |
runs-on: ubuntu-latest | |
#container: ubuntu:20.04 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Update package list | |
run: sudo apt-get update | |
- name: Install utils | |
run: sudo apt-get install curl wget -y | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install Alsa devel | |
run: sudo apt-get install libasound2-dev -y | |
- name: Install PulseAudio | |
run: DEBIAN_FRONTEND="noninteractive" sudo apt-get install libpulse0 libpulse-dev -y | |
- name: Install OpenSSL | |
run: sudo apt-get install openssl libssl-dev -y | |
- name: Build | |
run: cargo build --release --features pulse-backend | |
- name: Compress | |
run: tar -zcvf camilladsp.tar.gz -C target/release camilladsp | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: camilladsp.tar.gz | |
asset_name: camilladsp-linux-amd64.tar.gz | |
tag: ${{ github.ref }} | |
arm: | |
name: Pi | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: armv7-unknown-linux-gnueabihf | |
- name: Install cross | |
run: cargo install cross --git https://github.com/cross-rs/cross | |
- name: Build image | |
run: docker build -t cross/armv7:v1 --file Dockerfile_armv7 ./ | |
- name: Build | |
run: cross build --release --target armv7-unknown-linux-gnueabihf | |
env: | |
RUSTFLAGS: "-C target-feature=+neon" | |
- name: Compress | |
run: tar -zcvf camilladsp.tar.gz -C target/armv7-unknown-linux-gnueabihf/release camilladsp | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: camilladsp.tar.gz | |
asset_name: camilladsp-linux-armv7.tar.gz | |
tag: ${{ github.ref }} | |
arm64: | |
name: Pi64 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: aarch64-unknown-linux-gnu | |
- name: Install cross | |
run: cargo install cross --git https://github.com/cross-rs/cross | |
- name: Build image | |
run: docker build -t cross/armv8:v1 --file Dockerfile_armv8 ./ | |
- name: Build | |
run: cross build --release --target aarch64-unknown-linux-gnu | |
- name: Compress | |
run: tar -zcvf camilladsp.tar.gz -C target/aarch64-unknown-linux-gnu/release camilladsp | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: camilladsp.tar.gz | |
asset_name: camilladsp-linux-aarch64.tar.gz | |
tag: ${{ github.ref }} | |
armv6: | |
name: Pi-Zero | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: arm-unknown-linux-gnueabihf | |
- name: Install cross | |
run: cargo install cross --git https://github.com/cross-rs/cross | |
- name: Build image | |
run: docker build -t cross/armv6:v1 --file Dockerfile_armv6 ./ | |
- name: Build | |
run: cross build --release --target arm-unknown-linux-gnueabihf | |
- name: Compress | |
run: tar -zcvf camilladsp.tar.gz -C target/arm-unknown-linux-gnueabihf/release camilladsp | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: camilladsp.tar.gz | |
asset_name: camilladsp-linux-armv6.tar.gz | |
tag: ${{ github.ref }} | |
windows: | |
name: Windows | |
runs-on: windows-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Build | |
run: cargo build --release | |
- name: Compress | |
run: powershell Compress-Archive target/release/camilladsp.exe camilladsp.zip | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: camilladsp.zip | |
asset_name: camilladsp-windows-amd64.zip | |
tag: ${{ github.ref }} | |
windows7: | |
name: Windows7 | |
runs-on: windows-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: dtolnay/[email protected] | |
- name: Build | |
run: cargo build --release | |
- name: Compress | |
run: powershell Compress-Archive target/release/camilladsp.exe camilladsp.zip | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: camilladsp.zip | |
asset_name: camilladsp-windows7-amd64.zip | |
tag: ${{ github.ref }} | |
macos: | |
name: macOS Intel | |
runs-on: macos-13 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Build | |
run: cargo build --release | |
- name: Compress | |
run: tar -zcvf camilladsp.tar.gz -C target/release camilladsp | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: camilladsp.tar.gz | |
asset_name: camilladsp-macos-amd64.tar.gz | |
tag: ${{ github.ref }} | |
macos_arm: | |
name: macOS Arm | |
runs-on: macos-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Build | |
run: cargo build --release | |
- name: Compress | |
run: tar -zcvf camilladsp.tar.gz -C target/release camilladsp | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: camilladsp.tar.gz | |
asset_name: camilladsp-macos-aarch64.tar.gz | |
tag: ${{ github.ref }} |