Skip to content

Commit

Permalink
big bang
Browse files Browse the repository at this point in the history
  • Loading branch information
agourlay committed Jul 14, 2024
0 parents commit 220cb34
Show file tree
Hide file tree
Showing 32 changed files with 11,023 additions and 0 deletions.
74 changes: 74 additions & 0 deletions .github/workflows/ci.yml
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
67 changes: 67 additions & 0 deletions .github/workflows/release.yml
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 }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/target
.idea
/test-files/
Loading

0 comments on commit 220cb34

Please sign in to comment.