Skip to content

Commit 55478bf

Browse files
committed
Test pnpm
1 parent 3f96374 commit 55478bf

5 files changed

Lines changed: 40 additions & 34 deletions

File tree

.github/workflows/cross-build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ jobs:
2929
with:
3030
submodules: recursive
3131

32+
- name: Install pnpm
33+
uses: pnpm/action-setup@v6
34+
with:
35+
cache: true
36+
version: 10
37+
38+
- name: Build frontend
39+
run: pnpm install --ignore-scripts --frozen-lockfile && pnpm build
40+
working-directory: web
41+
3242
- name: Sync with FreeBSD
3343
run:
3444
rsync -rlptxzH -e 'ssh -l root' --del ./ freebsd:work/

.github/workflows/lint-web.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
submodules: recursive
3131
- uses: actions/setup-node@v6
3232
with:
33-
node-version: 24
33+
node-version: 25
3434
- name: install deps
3535
working-directory: ./web
3636
run: |

.github/workflows/release.yml

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,30 @@ jobs:
5757
with:
5858
upload_url: ${{ needs.create-release.outputs.upload_url }}
5959

60+
build-web:
61+
runs-on:
62+
- codebuild-defguard-proxy-runner-${{ github.run_id }}-${{ github.run_attempt }}
63+
64+
steps:
65+
- name: Checkout
66+
uses: actions/checkout@v6
67+
with:
68+
submodules: recursive
69+
70+
- name: Install pnpm
71+
uses: pnpm/action-setup@v6
72+
with:
73+
cache: true
74+
version: 10
75+
76+
- name: Build frontend
77+
run: pnpm install --ignore-scripts --frozen-lockfile && pnpm build
78+
working-directory: web
79+
6080
build-binaries:
61-
needs: [create-release]
81+
needs:
82+
- build-web
83+
- create-release
6284
runs-on:
6385
- self-hosted
6486
- ${{ matrix.os }}
@@ -88,15 +110,11 @@ jobs:
88110
echo Version: $VERSION
89111
echo "VERSION=$VERSION" >> $GITHUB_ENV
90112
91-
- name: Checkout
92-
uses: actions/checkout@v6
93-
with:
94-
submodules: recursive
95-
96113
- name: Install Rust stable
97114
uses: actions-rs/toolchain@v1
98115
with:
99-
toolchain: 1.89.0 # "stable" causes rust-lld: error on aarch64-linux target: ${{ matrix.target }}
116+
toolchain: stable
117+
target: ${{ matrix.target }}
100118
override: true
101119

102120
- name: Setup `packer`
@@ -110,31 +128,9 @@ jobs:
110128
[registry."docker.io"]
111129
mirrors = ["dockerhub-proxy.teonite.net"]
112130
113-
- name: Install pnpm
114-
uses: pnpm/action-setup@v4
115-
with:
116-
# FIXME: temporarily pinned because of https://github.com/pnpm/pnpm/pull/9959
117-
version: 10.17
118-
119-
- name: Use Node.js
120-
uses: actions/setup-node@v6
121-
with:
122-
node-version: 25
123-
cache: "pnpm"
124-
cache-dependency-path: ./web/pnpm-lock.yaml
125-
126-
- name: Install frontend dependencies
127-
run: pnpm install --ignore-scripts --frozen-lockfile
128-
working-directory: web
129-
130-
- name: Build frontend
131-
run: pnpm build
132-
working-directory: web
133-
134131
- name: Build release binary
135132
uses: actions-rs/cargo@v1
136133
with:
137-
use-cross: true
138134
command: build
139135
args: --locked --release --target ${{ matrix.target }}
140136

.github/workflows/update-repositories.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
else
4848
codename="trixie"
4949
fi
50-
50+
5151
echo "Uploading $deb_file to $codename"
5252
deb-s3 upload -l \
5353
--bucket=apt.defguard.net \
@@ -73,8 +73,8 @@ jobs:
7373
export AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_APT }}
7474
export AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_KEY_APT }}
7575
export AWS_REGION=eu-north-1
76-
sudo apt update -y
77-
sudo apt install -y awscli curl jq
76+
sudo apt-get update -y
77+
sudo apt-get install -y awscli curl jq
7878
7979
for DIST in trixie bookworm; do
8080
aws s3 cp s3://apt.defguard.net/dists/${DIST}/Release .

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ RUN cargo install --locked --path . --root /build
3939

4040
# run
4141
FROM debian:13-slim AS runtime
42-
RUN apt-get update -y && apt upgrade -y && \
42+
RUN apt-get update -y && apt-get upgrade -y && \
4343
apt-get install --no-install-recommends -y ca-certificates libssl-dev lsb-release && \
4444
rm -rf /var/lib/apt/lists/*
4545
WORKDIR /app

0 commit comments

Comments
 (0)