Compare commits

...
14 Commits
Author SHA1 Message Date
prorail b060ced878 build: Docs ook met release vlag bouwen
gitea/double-pendulum/pipeline/head This commit looks good
2026-09-08 17:34:17 +02:00
prorail 463fac575a build: Release vlag voor cargo check
gitea/double-pendulum/pipeline/head This commit looks good
2026-09-08 17:31:59 +02:00
prorail bc231a8e91 build: Cargo check meer gespecificeerd
gitea/double-pendulum/pipeline/head This commit looks good
2026-09-08 17:29:24 +02:00
prorail 5f864a86f8 build: Trailing forward slash voor artifact folder
gitea/double-pendulum/pipeline/head This commit looks good
2026-09-08 17:26:01 +02:00
prorail 930b896d58 docs: README naar docs laten verwijzen
gitea/double-pendulum/pipeline/head There was a failure building this commit
2026-09-08 17:23:05 +02:00
prorail c3e6ea7b88 build: Docs bouwen en publiceren 2026-09-08 17:22:50 +02:00
prorail 61ca20a5e1 docs: Root lib docs toegevoegd voor nu 2026-09-08 17:13:18 +02:00
prorail 6ee793765b chore: wasm build dirs in gitignore
gitea/double-pendulum/pipeline/head This commit looks good
2026-09-08 16:53:06 +02:00
prorail 0d04ed5f12 build: Alle inhoud van de pkg folder kopiëren, niet het hele ding
gitea/double-pendulum/pipeline/head This commit looks good
2026-09-08 16:48:15 +02:00
prorail 9d942b1ea5 build: Iets nettere deploy setup
gitea/double-pendulum/pipeline/head This commit looks good
2026-09-08 16:45:35 +02:00
prorail b05af111ad build: Fix archive path
gitea/double-pendulum/pipeline/head There was a failure building this commit
2026-09-08 16:40:07 +02:00
prorail 96e8169707 build: Fixed aanhalingsteken
gitea/double-pendulum/pipeline/head There was a failure building this commit
2026-09-08 16:35:34 +02:00
prorail 5d462f9963 build: Andere bouwmanier proberen
gitea/double-pendulum/pipeline/head There was a failure building this commit
2026-09-08 16:34:32 +02:00
prorail 96d6e69b3a chore: Rust-toolchain gepind 2026-09-08 16:34:14 +02:00
5 changed files with 39 additions and 2 deletions
+2
View File
@@ -21,3 +21,5 @@ target/
# Added by cargo
/target
pkg/
Vendored
+27 -2
View File
@@ -3,15 +3,40 @@ pipeline {
stages {
stage('Check') {
steps {
sh 'cargo check'
sh 'cargo check -r --target wasm32-unknown-unknown'
sh 'cargo tree -e features --target wasm32-unknown-unknown'
}
}
stage('Build') {
steps {
sh 'wasm-pack build --target web --out-dir /var/www/zwietering.eu/projects/double-pendulum/'
sh 'wasm-pack build --target web'
archiveArtifacts artifacts: 'pkg/'
}
}
stage('Build docs') {
steps {
sh 'cargo doc -r'
archiveArtifacts artifacts: 'target/doc/'
}
}
stage('Deploy') {
steps {
sh 'rm -r /var/www/zwietering.eu/projects/double-pendulum'
sh 'mkdir /var/www/zwietering.eu/projects/double-pendulum'
sh 'cp -r ./pkg/* /var/www/zwietering.eu/projects/double-pendulum'
}
}
stage('Deploy docs') {
steps {
sh 'cp -r ./target/doc/ /var/www/zwietering.eu/projects/double-pendulum'
}
}
}
post {
cleanup {
cleanWs()
+2
View File
@@ -1,5 +1,7 @@
# double-pendulum
[Docs](https://zwietering.eu/projects/double-pendulum/doc/double_pendulum_wasm)
<!--toc:start-->
- [double-pendulum](#double-pendulum)
+3
View File
@@ -0,0 +1,3 @@
[toolchain]
channel = "1.94.0"
targets = ["wasm32-unknown-unknown"]
+5
View File
@@ -1,3 +1,8 @@
//! WASM implementation of a double pendulum simulation
//!
//! See README.md for installation / build instructions.
//! This implementation is just a stub for now.
use wasm_bindgen::prelude::*;
#[wasm_bindgen(start)]