Skip to content

Commit

Permalink
Merge pull request #55 from baoyachi/issue/54
Browse files Browse the repository at this point in the history
Update lib.rs
  • Loading branch information
baoyachi authored Nov 28, 2024
2 parents b6e47c7 + 4158039 commit 32aa580
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,43 +93,43 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-pages:
if: github.actor!= 'dependabot[bot]'
runs-on: ubuntu-latest
needs: [ test ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
# deploy-pages:
# if: github.actor!= 'dependabot[bot]'
# runs-on: ubuntu-latest
# needs: [ test ]
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false
# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 18
# - uses: pnpm/action-setup@v4
# name: Install pnpm
# with:
# version: 8
# run_install: false

- name: Install Rust and wasm-pack
run: |
rustup update stable
cargo +stable install wasm-pack
# - name: Install Rust and wasm-pack
# run: |
# rustup update stable
# cargo +stable install wasm-pack

- name: Build WebAssembly module with wasm-pack
run: wasm-pack build --target bundler --out-dir ../site/pkg --release
working-directory: ./playground/wasm
# - name: Build WebAssembly module with wasm-pack
# run: wasm-pack build --target bundler --out-dir ../site/pkg --release
# working-directory: ./playground/wasm

- name: Build project
run: pnpm install && pnpm run build
working-directory: ./playground/site
# - name: Build project
# run: pnpm install && pnpm run build
# working-directory: ./playground/site

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: ${{github.ref == 'refs/heads/master' }}
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./playground/site/dist
# - name: Deploy to GitHub Pages
# uses: peaceiris/actions-gh-pages@v4
# if: ${{github.ref == 'refs/heads/master' }}
# with:
# personal_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./playground/site/dist
publish-crate:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ use rust_decimal::Decimal;
use std::str::FromStr;
use std::time::Duration;

use crate::error::DError;
pub use crate::error::DError;
use crate::unit::TimeUnit;
#[cfg(feature = "chrono")]
pub use naive_date::{
Expand Down

0 comments on commit 32aa580

Please sign in to comment.