|
72 | 72 |
|
73 | 73 | - name: plrust - install cargo-pgrx and initialize
|
74 | 74 | shell: |
|
75 |
| - source $HOME/.cargo/env |
76 |
| - cargo install cargo-pgrx --locked |
77 |
| - cargo pgrx init --pg{{ postgresql_major }} /usr/bin/pg_config |
| 75 | + source $HOME/.cargo/env |
| 76 | + cargo install cargo-pgrx --locked |
| 77 | + cargo pgrx init --pg{{ postgresql_major }} /usr/bin/pg_config |
78 | 78 | args:
|
79 | 79 | executable: /bin/bash
|
80 | 80 |
|
|
87 | 87 |
|
88 | 88 | - name: plrust - move plrustc binary to .cargo/bin
|
89 | 89 | command:
|
90 |
| - cmd: mv "/tmp/plrust/plrust/build/bin/plrustc" "$HOME/.cargo/bin/" |
91 |
| - warn: false |
| 90 | + cmd: mv "/tmp/plrust/plrust/build/bin/plrustc" "$HOME/.cargo/bin/" |
| 91 | + warn: false |
92 | 92 |
|
93 | 93 | - name: plrust - build plrust
|
94 | 94 | shell: |
|
95 |
| - source $HOME/.cargo/env |
96 |
| - export PG_VER="{{ postgresql_major }}" |
97 |
| - |
98 |
| - if [[ "{{ platform }}" == "arm64" ]]; then |
99 |
| - STD_TARGETS="aarch64-postgres-linux-gnu" |
100 |
| - elif [[ "{{ platform }}" == "amd64" ]]; then |
101 |
| - STD_TARGETS="amd64-postgres-linux-gnu" |
102 |
| - else |
103 |
| - echo "Unsupported platform: $platform" |
104 |
| - exit 1 |
105 |
| - fi |
| 95 | + source $HOME/.cargo/env |
| 96 | + export PG_VER="{{ postgresql_major }}" |
106 | 97 |
|
107 |
| - ./build |
| 98 | + if [[ "{{ platform }}" == "arm64" ]]; then |
| 99 | + STD_TARGETS="aarch64-postgres-linux-gnu" |
| 100 | + elif [[ "{{ platform }}" == "amd64" ]]; then |
| 101 | + STD_TARGETS="amd64-postgres-linux-gnu" |
| 102 | + else |
| 103 | + echo "Unsupported platform: $platform" |
| 104 | + exit 1 |
| 105 | + fi |
| 106 | + ./build |
108 | 107 | args:
|
109 | 108 | executable: /bin/bash
|
110 | 109 | chdir: "/tmp/plrust/plrust"
|
111 | 110 |
|
112 | 111 | - name: plrust - install plrust
|
113 | 112 | shell: |
|
114 |
| - source $HOME/.cargo/env |
115 |
| - cargo pgrx install --release --features trusted -c /usr/bin/pg_config |
| 113 | + source $HOME/.cargo/env |
| 114 | + cargo pgrx install --release --features trusted -c /usr/bin/pg_config |
116 | 115 | args:
|
117 |
| - executable: /bin/bash |
| 116 | + executable: /bin/bash |
0 commit comments