mirror of
https://github.com/Automattic/harper.git
synced 2025-07-07 13:05:01 +00:00
build: add caching (#1172)
This commit is contained in:
parent
aaf7e14dd8
commit
e0dd1087e3
5 changed files with 12 additions and 5 deletions
2
.github/workflows/build_harper_binaries.yml
vendored
2
.github/workflows/build_harper_binaries.yml
vendored
|
@ -118,6 +118,8 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2.7.8
|
||||
- name: Build binary
|
||||
uses: houseabsolute/actions-rust-cross@v1
|
||||
with:
|
||||
|
|
10
.github/workflows/precommit.yml
vendored
10
.github/workflows/precommit.yml
vendored
|
@ -9,8 +9,6 @@ on:
|
|||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
# Run for 300 times the default
|
||||
QUICKCHECK_TESTS: 30000
|
||||
|
||||
jobs:
|
||||
precommit:
|
||||
|
@ -18,13 +16,19 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: extractions/setup-just@v2
|
||||
- uses: actions/setup-node@v4
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: ".node-version"
|
||||
cache: 'pnpm'
|
||||
- name: Enable Corepack
|
||||
run: corepack enable
|
||||
- name: Install `pandoc`
|
||||
run: sudo apt-get update && sudo apt-get install pandoc -y
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2.7.8
|
||||
- name: Install `wasm-pack`
|
||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
- name: Precommit
|
||||
|
|
|
@ -116,6 +116,8 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@v2.7.8
|
||||
- name: Build binary
|
||||
uses: houseabsolute/actions-rust-cross@v1
|
||||
with:
|
||||
|
|
1
justfile
1
justfile
|
@ -203,7 +203,6 @@ precommit: check test build-harperjs build-obsidian build-web build-wp
|
|||
#! /bin/bash
|
||||
set -eo pipefail
|
||||
|
||||
cargo doc
|
||||
cargo build --all-targets
|
||||
|
||||
# Install `harper-cli` and `harper-ls` to your machine via `cargo`
|
||||
|
|
|
@ -15,5 +15,5 @@
|
|||
"check-dependency-version-consistency": "^5.0.0",
|
||||
"typescript": "catalog:"
|
||||
},
|
||||
"packageManager": "pnpm@10.6.3"
|
||||
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue