Skip to content

Commit

Permalink
Add workflows and lto (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
maplant authored Nov 5, 2024
1 parent 0c035c5 commit 453918e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Rust

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Install packages
run: sudo apt-get install libasound2-dev glslang-tools
- name: Build
run: cargo build
- name: Check formatting
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy --all-targets -- -Dclippy::all -D warnings
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ tokio = { version = "1", features = ["full"] }
unicode_categories = "0.1"
reedline = "0.23"
# TODO: Get rid of this dependency
derivative = "2"
derivative = "2"

[profile.release]
lto = true

0 comments on commit 453918e

Please sign in to comment.