Skip to content

Commit

Permalink
Merge pull request #5 from ten3roberts/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ten3roberts authored Mar 22, 2024
2 parents 726cf43 + 7091fee commit c28e25f
Show file tree
Hide file tree
Showing 76 changed files with 4,815 additions and 1,718 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]
rustflags = [ "--cfg=web_sys_unstable_apis" ]
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
RUST_LOG="info"
# RUST_LOG="info"
# RUST_BACKTRACE=1
41 changes: 41 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: deploy

on:
push:
branches: [main]

env:
CARGO_TERM_COLOR: always

jobs:
demo:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- run: cargo build --release --package violet-demo --target wasm32-unknown-unknown
- run: mv ./target/wasm32-unknown-unknown/release/violet_demo.wasm ./violet-demo/public
- name: Upload Artefact
uses: actions/upload-artifact@v2
with:
name: demo
path: demo/public
deploy:
runs-on: ubuntu-latest
needs: [asteroids, guide]
if: github.event_name == 'push' && ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Download demo
uses: actions/download-artifact@v2
with:
name: demo
path: dist/demo

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
8 changes: 8 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -22,6 +24,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
Expand All @@ -40,6 +44,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
Expand All @@ -61,6 +67,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "flax"]
path = flax
url = https://github.com/ten3roberts/flax
Loading

0 comments on commit c28e25f

Please sign in to comment.