Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-22.04
runs-on: buildjet-16vcpu-ubuntu-2204
defaults:
run:
working-directory: pgml-extension
Expand All @@ -24,7 +24,8 @@ jobs:
postgresql-server-dev-14 \
pkg-config \
python3-pip \
python3
python3 \
mold
sudo pip3 install -r requirements.txt
- name: Cache dependencies
uses: actions/cache@v3
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/package-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
strategy:
matrix:
os: ["ubuntu-22.04", "buildjet-4vcpu-ubuntu-2204-arm"]
os: ["buildjet-16vcpu-ubuntu-2204-arm", "buildjet-16vcpu-ubuntu-2204-arm"]
runs-on: ${{ matrix.os }}
defaults:
run:
Expand Down Expand Up @@ -74,7 +74,8 @@ jobs:
python3-pip \
libpython3.10-dev \
python3.10-dev \
ruby
ruby \
mold

curl -sLO https://github.com/deb-s3/deb-s3/releases/download/0.11.4/deb-s3-0.11.4.gem
sudo gem install deb-s3-0.11.4.gem
Expand Down
6 changes: 6 additions & 0 deletions pgml-extension/.cargo/config
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[build]
# Postgres symbols won't be available until runtime
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup"]

[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup,-fuse-ld=/usr/bin/mold"]

[target.aarch64-unknown-linux-gnu]
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup,-fuse-ld=/usr/bin/mold"]