Skip to content

Commit 63fa754

Browse files
committed
Update Actions for parallel build
1 parent 34ca0e5 commit 63fa754

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/pgrx_test.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ jobs:
2828
runs_on: ubuntu-22.04
2929
- type: arm64
3030
runs_on: cloud-image-runner-arm64
31+
parallel_build:
32+
- enabled: true
33+
name: "parallel"
34+
features: "pg_test"
35+
- enabled: false
36+
name: "sequential"
37+
features: "pg_test"
3138

3239
env:
3340
PG_SRC_DIR: pgbuild
@@ -64,14 +71,14 @@ jobs:
6471
pg-install-dir: ~/${{ env.PG_INSTALL_DIR }}
6572
pgrx-version: 0.12.9
6673

67-
- name: Run Clippy
74+
- name: Run Clippy (${{ matrix.parallel_build.name }})
6875
id: clippy
6976
run: |
7077
cd pgvectorscale
71-
cargo clippy --all-targets --no-default-features --features 'pg_test pg${{ matrix.pg.major }}'
78+
cargo clippy --all-targets --no-default-features --features '${{ matrix.parallel_build.features }} pg${{ matrix.pg.major }}${{ matrix.parallel_build.enabled && ' build_parallel' || '' }}'
7279
73-
- name: Run tests
80+
- name: Run tests (${{ matrix.parallel_build.name }})
7481
id: runtests
7582
run: |
7683
cd pgvectorscale
77-
cargo pgrx test -- pg${{ matrix.pg.major }}
84+
cargo pgrx test --no-default-features --features '${{ matrix.parallel_build.features }} pg${{ matrix.pg.major }}${{ matrix.parallel_build.enabled && ' build_parallel' || '' }}' -- pg${{ matrix.pg.major }}

0 commit comments

Comments
 (0)