Skip to content

Commit

Permalink
feat(ci): build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
aellwein committed Dec 31, 2024
1 parent 32b0ed4 commit 37518dc
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
target = "wasm32-unknown-unknown"
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on:
push:

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
name: trunk build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Setup trunk
uses: jetli/[email protected]
with:
version: 'latest'
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ yewdux = "0.10.0"

[build-dependencies]
vergen-gitcl = "1.0.2"

[profile.release]
panic = 'abort'
codegen-units = 1
opt-level = 'z'
lto = true
5 changes: 5 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[toolchain]
channel = "stable"
components = ["rustfmt", "cargo", "clippy"]
targets = ["wasm32-unknown-unknown"]
profile = "minimal"

0 comments on commit 37518dc

Please sign in to comment.