Skip to content

Commit

Permalink
ci: copy over jobs from eframe template
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Jan 1, 2025
1 parent 48bd7cd commit ecad7ad
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings

jobs:
test:
Expand All @@ -23,6 +25,9 @@ jobs:
steps:
- uses: wykies/checkout@main
- uses: wykies/setup-rust-toolchain@main
# Uncomment if working on an egui project
# - name: Install egui dependencies
# run: sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev
- name: Run tests
run: cargo test --all-features

Expand All @@ -35,7 +40,7 @@ jobs:
with:
components: rustfmt
- name: Enforce formatting
run: cargo fmt --check
run: cargo fmt --all --check

clippy:
name: Clippy
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,17 @@ jobs:
target: wasm32-unknown-unknown
components: clippy
- name: Linting
run: cargo clippy --target="wasm32-unknown-unknown" -- -D warnings
run: cargo clippy --target="wasm32-unknown-unknown" -- -D warnings

trunk:
name: trunk
runs-on: ubuntu-latest
steps:
- uses: wykies/checkout@main
- uses: wykies/setup-rust-toolchain@main
with:
target: wasm32-unknown-unknown
- name: Download and install Trunk binary
run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
- name: Build
run: ./trunk build

0 comments on commit ecad7ad

Please sign in to comment.