Skip to content

Commit efbad24

Browse files
committed
fix runas.yml
1 parent a76e7cd commit efbad24

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/runas.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
env:
1010
CARGO_TERM_COLOR: always
1111
RUST_BACKTRACE: 1
12+
TOOL_DIR: ./tools
1213

1314
jobs:
1415
ubuntu:
@@ -20,6 +21,10 @@ jobs:
2021
with:
2122
prefix-key: "v1-cargo-pgrx-test--runas"
2223

24+
- name: Install Rust
25+
run: |
26+
"$TOOL_DIR"/rustup.sh
27+
2328
- name: Install Postgres deps
2429
run: |
2530
sudo apt-get update -y -qq --fix-missing
@@ -35,4 +40,6 @@ jobs:
3540
run: cargo pgrx init --pg14=$(which pg_config)
3641

3742
- name: Test cargo pgrx test --runas
38-
run: cd pgrx-examples/arrays && cargo pgrx test pg14 --runas postgres --pgdata=/tmp/pgdata
43+
run: |
44+
echo 0 | sudo tee /proc/sys/fs/protected_fifos
45+
cd pgrx-examples/arrays && cargo pgrx test pg14 --runas postgres --pgdata=/tmp/pgdata

0 commit comments

Comments
 (0)