Compare commits
14
Commits
ba06b988af
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b060ced878 | ||
|
|
463fac575a | ||
|
|
bc231a8e91 | ||
|
|
5f864a86f8 | ||
|
|
930b896d58 | ||
|
|
c3e6ea7b88 | ||
|
|
61ca20a5e1 | ||
|
|
6ee793765b | ||
|
|
0d04ed5f12 | ||
|
|
9d942b1ea5 | ||
|
|
b05af111ad | ||
|
|
96e8169707 | ||
|
|
5d462f9963 | ||
|
|
96d6e69b3a |
@@ -21,3 +21,5 @@ target/
|
||||
# Added by cargo
|
||||
|
||||
/target
|
||||
|
||||
pkg/
|
||||
|
||||
Vendored
+27
-2
@@ -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()
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# double-pendulum
|
||||
|
||||
[Docs](https://zwietering.eu/projects/double-pendulum/doc/double_pendulum_wasm)
|
||||
|
||||
<!--toc:start-->
|
||||
|
||||
- [double-pendulum](#double-pendulum)
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "1.94.0"
|
||||
targets = ["wasm32-unknown-unknown"]
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user