2
2
NAME : uids_postgres
3
3
EXT_NAME : uids_postgres
4
4
PKG_NAME : uids_postgres
5
+
5
6
name : Release
7
+
6
8
on :
7
9
push :
8
10
tags : [v*]
11
+
9
12
concurrency :
10
13
group : ${{ github.workflow }}-${{ github.ref }}
14
+
11
15
jobs :
12
16
create-release :
13
17
name : Create release
@@ -19,14 +23,14 @@ jobs:
19
23
id : create-release
20
24
uses : actions/create-release@v1
21
25
env :
22
- GITHUB_TOKEN : ${{ github.token }}
26
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23
27
with :
24
28
tag_name : ${{ github.ref }}
25
29
release_name : ${{ github.ref }}
30
+
26
31
build-linux-gnu :
27
32
name : Build & Release for linux
28
- needs :
29
- - create-release
33
+ needs : create-release
30
34
strategy :
31
35
fail-fast : false
32
36
matrix :
39
43
steps :
40
44
- name : Checkout
41
45
uses : actions/checkout@v4
46
+
42
47
- name : Install rust
43
48
uses : dtolnay/rust-toolchain@1.78.0
49
+
44
50
- name : Install dependencies
45
51
run : |
46
52
# Add postgres package repo
@@ -58,12 +64,12 @@ jobs:
58
64
# Ensure installed pg_config is first on path
59
65
export PATH=$PATH:/usr/lib/postgresql/${{ matrix.postgres }}/bin
60
66
61
- cargo install cargo-pgrx --version 0.11.2 --locked
67
+ cargo install cargo-pgrx --version 0.11.4 --locked
62
68
cargo pgrx init --pg${{ matrix.postgres }}=/usr/lib/postgresql/${{ matrix.postgres }}/bin/pg_config
69
+
63
70
- name : Build artifacts
64
71
run : |
65
72
# selects the pgVer from pg_config on path
66
- # https://github.com/tcdi/pgrx/issues/288
67
73
cargo pgrx package --no-default-features --features pg${{ matrix.postgres }}
68
74
69
75
# Create installable package
@@ -107,12 +113,13 @@ jobs:
107
113
sudo chown -R root:root package
108
114
sudo chmod -R 00755 package
109
115
sudo dpkg-deb -Zxz --build --root-owner-group package
116
+
110
117
- name : Upload artifacts
111
118
uses : actions/upload-release-asset@v1
112
119
env :
113
- GITHUB_TOKEN : ${{ github.token }}
120
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
114
121
with :
115
122
upload_url : ${{ needs.create-release.outputs.upload_url }}
116
123
asset_path : ./package.deb
117
124
asset_name : ${{ env.NAME }}-${{ github.ref_name }}-pg${{ matrix.postgres }}-${{ matrix.box.arch }}-linux-gnu.deb
118
- asset_content_type : application/vnd.debian.binary-package
125
+ asset_content_type : application/vnd.debian.binary-package
0 commit comments