Skip to content

Commit

Permalink
Merge pull request #18 from SolarLiner/refactor/move-into-crates
Browse files Browse the repository at this point in the history
Add ts404 into monorepo
  • Loading branch information
SolarLiner authored Sep 15, 2024
2 parents e682565 + f8e81ca commit 789e651
Show file tree
Hide file tree
Showing 99 changed files with 19,204 additions and 580 deletions.
44 changes: 17 additions & 27 deletions .github/workflows/build.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Automated Builds
name: CI

on:
push:
Expand Down Expand Up @@ -56,38 +56,28 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ matrix.name }}-${{ matrix.cross-target }}

- name: Install Pyhton 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install poetry
run: pip install poetry
- name: Set up Rust toolchain
uses: actions-rs/toolchain@v1
with:
# The macOS AArch64/universal build is done from an x86_64 macOS CI
# runner, so it needs to be cross compiled
target: ${{ matrix.cross-target }}
- name: Build valib
run: cargo build -p valib --release
- name: Package all targets from bundler.toml
# Instead of hardcoding which targets to build and package, we'll
# package everything that's got en entry in the `bundler.toml` file
run: |
# Building can be sped up by specifying all packages in one go
package_args=()
for package in $(cargo xtask known-packages); do
package_args+=("-p" "$package")
done
runner_name=${{ matrix.name }}
if [[ $runner_name = 'macos-universal' ]]; then
export MACOSX_DEPLOYMENT_TARGET=10.13
cargo xtask bundle-universal "${package_args[@]}" --release
else
cross_target=${{ matrix.cross-target }}
if [[ -n $cross_target ]]; then
package_args+=("--target" "$cross_target")
fi
cargo xtask bundle "${package_args[@]}" --release
fi
- name: Install cargo-make
uses: actions-rs/cargo@v1
with:
command: install
args: --debug cargo-make
- name: Run CI
uses: actions-rs/cargo@v1
with:
command: make
args: --no-workspace workspace-ci-flow
- name: Determine build archive name
run: |
echo "ARCHIVE_NAME=valib-plugins-$(git describe --always)-${{ matrix.name }}" >> "$GITHUB_ENV"
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Clippy lints

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libasound2-dev libgl-dev libjack-dev libx11-xcb-dev libxcb1-dev libxcb-dri2-0-dev libxcb-icccm4-dev libxcursor-dev libxkbcommon-dev libxcb-shape0-dev libxcb-xfixes0-dev
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ matrix.name }}-${{ matrix.cross-target }}
- name: Install Pyhton 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install poetry
run: pip install poetry
- name: Set up Rust toolchain
uses: actions-rs/toolchain@v1
- name: Install cargo-make
uses: actions-rs/cargo@v1
with:
command: install
args: --debug cargo-make
- name: pre-build
run: cargo make pre-build
- name: Run clippy
uses: clechasseur/rs-clippy-check@v3
with:
args: --workspace --all-targets --all-features
13 changes: 13 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,21 @@ jobs:
- uses: actions/checkout@v2
- name: Fetch all git history
run: git fetch --force --prune --tags --unshallow
- name: Install Pyhton 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install poetry
run: pip install poetry
- name: Set up Rust toolchain
uses: actions-rs/toolchain@v1
- name: Install cargo-make
uses: actions-rs/cargo@v1
with:
command: install
args: --debug cargo-make
- name: pre-build
run: cargo make pre-build
- name: Build documentation
run: cargo doc --all-features --no-deps
- name: Fix permissions
Expand Down
68 changes: 0 additions & 68 deletions .github/workflows/test.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/valib.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 789e651

Please sign in to comment.