Compare commits

...
12 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
4 changed files with 36 additions and 4 deletions
+2
View File
@@ -21,3 +21,5 @@ target/
# Added by cargo # Added by cargo
/target /target
pkg/
Vendored
+27 -4
View File
@@ -3,17 +3,40 @@ pipeline {
stages { stages {
stage('Check') { stage('Check') {
steps { steps {
sh 'cargo check' sh 'cargo check -r --target wasm32-unknown-unknown'
sh 'cargo tree -e features --target wasm32-unknown-unknown'
} }
} }
stage('Build') { stage('Build') {
steps { steps {
sh 'wasm-pack build --target web" sh 'wasm-pack build --target web'
archiveArtifacts artifacts: './pkg/' archiveArtifacts artifacts: 'pkg/'
sh 'cp ./pkg/ /var/www/zwietering.eu/projects/double-pendulum' }
}
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 { post {
cleanup { cleanup {
cleanWs() cleanWs()
+2
View File
@@ -1,5 +1,7 @@
# double-pendulum # double-pendulum
[Docs](https://zwietering.eu/projects/double-pendulum/doc/double_pendulum_wasm)
<!--toc:start--> <!--toc:start-->
- [double-pendulum](#double-pendulum) - [double-pendulum](#double-pendulum)
+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::*; use wasm_bindgen::prelude::*;
#[wasm_bindgen(start)] #[wasm_bindgen(start)]