-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: ci | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
rust: [stable] | ||
experimental: [false] | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.experimental }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: build | ||
run: cargo test --no-run --workspace --no-fail-fast --all-features | ||
- name: test (default features) | ||
run: cargo test --workspace --no-fail-fast | ||
- name: test (all features) | ||
run: cargo test --workspace --no-fail-fast --all-features | ||
- name: test (no default features) | ||
run: cargo test --workspace --no-fail-fast --no-default-features |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,31 @@ | ||
name: deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: wasm32-unknown-unknown | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
target-wasm/ | ||
key: deploy-rust-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: deploy-rust-${{ runner.os }} | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-binstall | ||
- run: cargo binstall --no-confirm --no-symlinks wasm-bindgen-cli | ||
- run: | | ||
cargo build --package secalc_gui --target wasm32-unknown-unknown --target-dir target-wasm --release | ||
wasm-bindgen --out-dir code/gui/web/wasm_out --target web --no-typescript target-wasm/wasm32-unknown-unknown/release/secalc_gui.wasm | ||
- uses: peaceiris/actions-gh-pages@v3 | ||
- name: install trunk, wasm-bindgen-cli | ||
run: cargo binstall --no-confirm --no-symlinks trunk wasm-bindgen-cli | ||
- name: build | ||
run: trunk build --release | ||
- name: deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./code/gui/web | ||
publish_dir: ./package/gui/dist | ||
cname: secalc.gohla.nl |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
# Rust | ||
/target | ||
/target-wasm | ||
**/wasm_out | ||
**/*.rs.bk | ||
# macOS | ||
*.DS_Store | ||
|
||
# IntelliJ | ||
/.idea | ||
/*.iml | ||
/.idea/* | ||
*.iml | ||
# Allow sharing of IntelliJ run configurations. | ||
!/.idea/runConfigurations/ | ||
!/.idea/runConfigurations/* | ||
|
||
# Cargo | ||
/target |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.