-
-
Notifications
You must be signed in to change notification settings - Fork 253
45 lines (36 loc) · 1.08 KB
/
package-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: verify package can build
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
TOOL_DIR: ./tools
PG_VER: 14
jobs:
ubuntu:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "v1-pgrx--package-test"
- name: Install Postgres deps
run: |
sudo apt-get update -y -qq --fix-missing
sudo apt-get install -y postgresql-server-dev-$PG_VER
- name: Rustup
run: $TOOL_DIR/rustup.sh nightly
- name: Install cargo pgrx
run: cargo +nightly install --path cargo-pgrx --debug
- name: cargo pgrx init
run: cargo +nightly pgrx init "--pg$PG_VER=$(which pg_config)"
- name: Test pgrx can be packaged as a new version
run: |
./update-versions.sh 0.0.999-rc.999 && \
cargo +nightly package \
--workspace -Zpackage-workspace \
--allow-dirty \
--features "pg$PG_VER"