Include npm install in build
This commit is contained in:
parent
dd5371a2e3
commit
f035f014ed
@ -6,6 +6,7 @@ set -Eeuo pipefail
|
|||||||
export HOME=$(pwd)
|
export HOME=$(pwd)
|
||||||
export CARGO_HOME=$(pwd)/.cargo
|
export CARGO_HOME=$(pwd)/.cargo
|
||||||
cd wwp-repo
|
cd wwp-repo
|
||||||
|
ln -s ../node_modules ./node_modules
|
||||||
ln -s ../target ./target
|
ln -s ../target ./target
|
||||||
ln -s ../wwpapp ./dist
|
ln -s ../wwpapp ./dist
|
||||||
|
|
||||||
@ -13,4 +14,5 @@ echo Running tests
|
|||||||
cargo test --target-dir ../target --profile release
|
cargo test --target-dir ../target --profile release
|
||||||
|
|
||||||
echo Building assets
|
echo Building assets
|
||||||
|
npm install
|
||||||
trunk build --locked --release
|
trunk build --locked --release
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
FROM rust
|
FROM rust
|
||||||
RUN apt-get -y update && \
|
RUN apt-get -y update && \
|
||||||
apt-get -y install \
|
apt-get -y install \
|
||||||
|
npm \
|
||||||
binaryen \
|
binaryen \
|
||||||
build-essential \
|
build-essential \
|
||||||
git \
|
git \
|
||||||
|
@ -19,6 +19,7 @@ jobs:
|
|||||||
caches:
|
caches:
|
||||||
- path: target
|
- path: target
|
||||||
- path: .cargo
|
- path: .cargo
|
||||||
|
- path: node_modules
|
||||||
outputs:
|
outputs:
|
||||||
- name: wwpapp
|
- name: wwpapp
|
||||||
run:
|
run:
|
||||||
|
Loading…
Reference in New Issue
Block a user