-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 220cb34
Showing
32 changed files
with
11,023 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ '*' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
linux-build: | ||
name: Linux CI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Update apt | ||
run: sudo apt update | ||
- name: Install alsa | ||
run: sudo apt-get install libasound2-dev | ||
- name: Install stable | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Check code formatting | ||
run: cargo fmt --all -- --check | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose | ||
- name: Check cargo clippy warnings | ||
run: cargo clippy --workspace --all-targets --all-features -- -D warnings | ||
|
||
macos-build: | ||
name: macOS CI | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install llvm and clang | ||
run: brew install llvm | ||
- name: Install stable | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose | ||
- name: Check cargo clippy warnings | ||
run: cargo clippy --workspace --all-targets --all-features -- -D warnings | ||
|
||
windows-build: | ||
name: windows CI | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install ASIO SDK | ||
env: | ||
LINK: https://www.steinberg.net/asiosdk | ||
run: | | ||
curl -L -o asio.zip $env:LINK | ||
7z x -oasio asio.zip | ||
move asio\*\* asio\ | ||
- name: Install ASIO4ALL | ||
run: choco install asio4all | ||
- name: Install llvm and clang | ||
run: choco install llvm | ||
- name: Install stable | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
target: x86_64-pc-windows-msvc | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose | ||
- name: Check cargo clippy warnings | ||
run: cargo clippy --workspace --all-targets --all-features -- -D warnings |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: release binaries | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
upload-bins: | ||
name: "Upload release binaries" | ||
strategy: | ||
matrix: | ||
include: | ||
- target: x86_64-unknown-linux-gnu | ||
os: ubuntu-latest | ||
- target: x86_64-pc-windows-msvc | ||
os: windows-latest | ||
- target: aarch64-pc-windows-msvc | ||
os: windows-latest | ||
- target: x86_64-apple-darwin | ||
os: macos-latest | ||
- target: aarch64-apple-darwin | ||
os: macos-latest | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# Install dependencies per OS | ||
# copy the dependencies step from the ci.yml file | ||
- if: matrix.os == 'ubuntu-latest' | ||
name: Install dependencies (ubuntu-latest) | ||
run: | | ||
sudo apt update | ||
sudo apt-get install libasound2-dev | ||
- if: matrix.os == 'macOS-latest' | ||
name: Install dependencies (macOS-latest) | ||
run: | | ||
brew install llvm | ||
- if: matrix.os == 'windows-latest' | ||
name: Install ASIO SDK | ||
env: | ||
LINK: https://www.steinberg.net/asiosdk | ||
run: | | ||
curl -L -o asio.zip $env:LINK | ||
7z x -oasio asio.zip | ||
move asio\*\* asio\ | ||
choco install asio4all | ||
choco install llvm | ||
- if: matrix.os == 'windows-latest' | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
target: x86_64-pc-windows-msvc | ||
|
||
- if: matrix.os != 'windows-latest' | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
# All | ||
- uses: taiki-e/upload-rust-binary-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
bin: ruxguitar | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/target | ||
.idea | ||
/test-files/ |
Oops, something went wrong.