Skip to content

Commit d49e8a6

Browse files
authored
Build faster (#909)
1 parent 83555d1 commit d49e8a6

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
jobs:
66
tests:
7-
runs-on: ubuntu-22.04
7+
runs-on: buildjet-16vcpu-ubuntu-2204
88
defaults:
99
run:
1010
working-directory: pgml-extension
@@ -24,7 +24,8 @@ jobs:
2424
postgresql-server-dev-14 \
2525
pkg-config \
2626
python3-pip \
27-
python3
27+
python3 \
28+
mold
2829
sudo pip3 install -r requirements.txt
2930
- name: Cache dependencies
3031
uses: actions/cache@v3

.github/workflows/package-extension.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build:
1111
strategy:
1212
matrix:
13-
os: ["ubuntu-22.04", "buildjet-4vcpu-ubuntu-2204-arm"]
13+
os: ["buildjet-16vcpu-ubuntu-2204-arm", "buildjet-16vcpu-ubuntu-2204-arm"]
1414
runs-on: ${{ matrix.os }}
1515
defaults:
1616
run:
@@ -74,7 +74,8 @@ jobs:
7474
python3-pip \
7575
libpython3.10-dev \
7676
python3.10-dev \
77-
ruby
77+
ruby \
78+
mold
7879
7980
curl -sLO https://github.com/deb-s3/deb-s3/releases/download/0.11.4/deb-s3-0.11.4.gem
8081
sudo gem install deb-s3-0.11.4.gem

pgml-extension/.cargo/config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
[build]
22
# Postgres symbols won't be available until runtime
33
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"]
4+
5+
[target.x86_64-unknown-linux-gnu]
6+
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup,-fuse-ld=/usr/bin/mold"]
7+
8+
[target.aarch64-unknown-linux-gnu]
9+
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup,-fuse-ld=/usr/bin/mold"]

0 commit comments

Comments
 (0)