mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-07-12 00:32:20 +08:00
Remove nodejs from build
This commit is contained in:
@@ -18,11 +18,6 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: curl -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain stable --profile minimal
|
run: curl -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain stable --profile minimal
|
||||||
|
|
||||||
- name: Set up Node.js
|
|
||||||
uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: '18'
|
|
||||||
|
|
||||||
- name: Install android NDK
|
- name: Install android NDK
|
||||||
id: setup-ndk
|
id: setup-ndk
|
||||||
uses: https://github.com/nttld/setup-ndk@v1
|
uses: https://github.com/nttld/setup-ndk@v1
|
||||||
@@ -33,12 +28,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir out
|
mkdir out
|
||||||
|
|
||||||
- name: Build webui
|
|
||||||
run: |
|
|
||||||
cd webui
|
|
||||||
npm install
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
- name: Install cargo ndk
|
- name: Install cargo ndk
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -3,18 +3,12 @@ FROM docker.io/library/debian:latest AS builder
|
|||||||
# First - build
|
# First - build
|
||||||
|
|
||||||
RUN apt update && apt install -y curl libssl-dev perl git gcc make
|
RUN apt update && apt install -y curl libssl-dev perl git gcc make
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash
|
|
||||||
RUN apt update && apt install -y nodejs
|
|
||||||
RUN curl -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain stable --profile minimal
|
RUN curl -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain stable --profile minimal
|
||||||
|
|
||||||
WORKDIR /ew/
|
WORKDIR /ew/
|
||||||
|
|
||||||
COPY ./ ./
|
COPY ./ ./
|
||||||
|
|
||||||
WORKDIR /ew/webui/
|
|
||||||
|
|
||||||
RUN npm i && npm run build
|
|
||||||
|
|
||||||
WORKDIR /ew/
|
WORKDIR /ew/
|
||||||
|
|
||||||
RUN . "$HOME/.cargo/env" && cargo build --release
|
RUN . "$HOME/.cargo/env" && cargo build --release
|
||||||
|
|||||||
Reference in New Issue
Block a user