Skip to content

Commit

Permalink
build frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
t-aleksander committed Jun 21, 2024
1 parent 568bd75 commit 4ef38ff
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 12 deletions.
41 changes: 31 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,21 @@ jobs:
strategy:
fail-fast: false
matrix:
build: [ linux, linux-arm, linux-arm64, freebsd ]
# build: [ linux, linux-arm, linux-arm64, freebsd ]
build: [ linux ]
include:
- build: linux
os: Linux
target: x86_64-unknown-linux-gnu
- build: linux-arm
os: Linux
target: armv7-unknown-linux-gnueabihf
- build: linux-arm64
os: Linux
target: aarch64-unknown-linux-gnu
- build: freebsd
os: Linux
target: x86_64-unknown-freebsd
# - build: linux-arm
# os: Linux
# target: armv7-unknown-linux-gnueabihf
# - build: linux-arm64
# os: Linux
# target: aarch64-unknown-linux-gnu
# - build: freebsd
# os: Linux
# target: x86_64-unknown-freebsd
steps:
# Store the version, stripping any v-prefix
- name: Write release version
Expand Down Expand Up @@ -113,6 +114,26 @@ jobs:
[registry."docker.io"]
mirrors = ["dockerhub-proxy.teonite.net"]
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: ./web/pnpm-lock.yaml

- name: Install frontend dependencies
run: pnpm install --ignore-scripts --frozen-lockfile
working-directory: web

- name: Build frontend
run: pnpm build
working-directory: web

- name: Build release binary
uses: actions-rs/cargo@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
push:
branches:
- main
- dev
# - dev
paths-ignore:
- '*.md'
- 'LICENSE'
pull_request:
branches:
- main
- dev
# - dev
paths-ignore:
- '*.md'
- 'LICENSE'
Expand Down

0 comments on commit 4ef38ff

Please sign in to comment.