Skip to content

Commit

Permalink
Merge pull request #11 from c-git/develop
Browse files Browse the repository at this point in the history
0.5.0
  • Loading branch information
c-git authored Jan 7, 2025
2 parents 6e275c8 + 109f71d commit c6ba5ef
Show file tree
Hide file tree
Showing 28 changed files with 2,093 additions and 414 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Rust General

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -12,9 +12,12 @@ on:
branches:
- main
- develop
workflow_call:

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

jobs:
test:
Expand All @@ -23,6 +26,8 @@ jobs:
steps:
- uses: wykies/checkout@main
- uses: wykies/setup-rust-toolchain@main
- name: Run examples
run: cargo test --all-features --examples
- name: Run tests
run: cargo test --all-features

Expand All @@ -33,9 +38,10 @@ jobs:
- uses: wykies/checkout@main
- uses: wykies/setup-rust-toolchain@main
with:
toolchain: nightly
components: rustfmt
- name: Enforce formatting
run: cargo fmt --check
run: cargo fmt --all --check

clippy:
name: Clippy
Expand All @@ -46,4 +52,4 @@ jobs:
with:
components: clippy
- name: Linting
run: cargo clippy -- -D warnings
run: cargo clippy --all-features -- -D warnings
24 changes: 24 additions & 0 deletions .github/workflows/link_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Links Checker

on:
pull_request:
branches:
- main
schedule:
- cron: "12 02 4 * *"

jobs:
link_checker:
runs-on: ubuntu-latest
steps:
- uses: wykies/checkout@main
- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.ref }}
restore-keys: cache-lychee-
- name: Run lychee
uses: lycheeverse/lychee-action@v2
with:
args: --cache --no-progress --require-https './**/*.md' './**/*.html' './**/*.rs'
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
pull_request:
branches:
- main
workflow_call:

env:
CARGO_TERM_COLOR: always

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/semver_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
pull_request:
branches:
- main
workflow_call:

env:
CARGO_TERM_COLOR: always

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ on:
- develop
pull_request:
branches:
- main
- develop
workflow_call:

env:
CARGO_TERM_COLOR: always

jobs:
test:
test_in_browser:
name: Test WASM in browser
runs-on: ubuntu-latest
steps:
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Run Examples
run: wasm-pack test --headless --chrome --all-features --examples

clippy:
clippy_wasm:
name: Clippy WASM
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
/target
.lycheecache
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"rust-analyzer.showUnlinkedFileNotification": false,
"cSpell.words": [
"jsvalue"
]
// "code-runner.customCommand": "wasm-pack test --headless --firefox",
],
// "rust-analyzer.cargo.target": "wasm32-unknown-unknown" // Uncomment to use rust-analyzer on wasm code instead
"rust-analyzer.cargo.features": ["yield_now", "egui"]
}
Loading

0 comments on commit c6ba5ef

Please sign in to comment.