Skip to content

Commit

Permalink
feat: nop
Browse files Browse the repository at this point in the history
  • Loading branch information
cathaysia committed Nov 22, 2023
1 parent 4d8e9e0 commit c10a72e
Show file tree
Hide file tree
Showing 3 changed files with 388 additions and 16 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
key: cargo_cache-${{ runner.os }}
- uses: actions-rs/toolchain@v1
- name: Install Nix
uses: cachix/install-nix-action@v18
with:
toolchain: nightly
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Build Packages
run: |
mkdir -p public/
RUST_LOG=DEBUG cargo +nightly run -- config.toml --dump -o public/dump.json
export RUST_LOG=DEBUG
nix develop --impure --command bash -c "cargo run -- config.toml"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ repos:
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
hooks:
- id: prettier

- repo: local
hooks:
Expand Down
Loading

0 comments on commit c10a72e

Please sign in to comment.