|
71 | 71 | executable: /bin/bash
|
72 | 72 |
|
73 | 73 | - name: plrust - install cargo-pgrx and initialize
|
74 |
| - shell: | |
| 74 | + shell: | |
75 | 75 | source $HOME/.cargo/env
|
76 | 76 | cargo install cargo-pgrx --locked
|
77 | 77 | cargo pgrx init --pg{{ postgresql_major }} /usr/bin/pg_config
|
78 |
| - args: |
79 |
| - executable: /bin/bash |
| 78 | + args: |
| 79 | + executable: /bin/bash |
80 | 80 |
|
81 |
| - - name: plrust - clone plrust |
82 |
| - git: |
83 |
| - repo: https://github.com/tcdi/plrust |
84 |
| - dest: /tmp/plrust |
85 |
| - version: v{{ plrust_release }} |
| 81 | +- name: plrust - clone plrust |
| 82 | + git: |
| 83 | + repo: https://github.com/tcdi/plrust |
| 84 | + dest: /tmp/plrust |
| 85 | + version: v{{ plrust_release }} |
86 | 86 |
|
87 | 87 |
|
88 |
| - - name: plrust - move plrustc binary to .cargo/bin |
89 |
| - command: |
90 |
| - cmd: mv "/tmp/plrust/plrust/build/bin/plrustc" "$HOME/.cargo/bin/" |
91 |
| - warn: false |
| 88 | +- name: plrust - move plrustc binary to .cargo/bin |
| 89 | + command: |
| 90 | + cmd: mv "/tmp/plrust/plrust/build/bin/plrustc" "$HOME/.cargo/bin/" |
| 91 | + warn: false |
92 | 92 |
|
93 |
| - - name: plrust - build plrust |
94 |
| - shell: | |
95 |
| - source $HOME/.cargo/env |
96 |
| - export PG_VER="{{ postgresql_major }}" |
| 93 | +- name: plrust - build plrust |
| 94 | + shell: | |
| 95 | + source $HOME/.cargo/env |
| 96 | + export PG_VER="{{ postgresql_major }}" |
97 | 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 |
106 |
| - ./build |
107 |
| - args: |
108 |
| - executable: /bin/bash |
109 |
| - chdir: "/tmp/plrust/plrust" |
| 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 |
| 107 | + args: |
| 108 | + executable: /bin/bash |
| 109 | + chdir: "/tmp/plrust/plrust" |
110 | 110 |
|
111 |
| - - name: plrust - install plrust |
112 |
| - shell: | |
113 |
| - source $HOME/.cargo/env |
114 |
| - cargo pgrx install --release --features trusted -c /usr/bin/pg_config |
115 |
| - args: |
116 |
| - executable: /bin/bash |
| 111 | +- name: plrust - install plrust |
| 112 | + shell: | |
| 113 | + source $HOME/.cargo/env |
| 114 | + cargo pgrx install --release --features trusted -c /usr/bin/pg_config |
| 115 | + args: |
| 116 | + executable: /bin/bash |
0 commit comments