Skip to content

Commit 3d0bd51

Browse files
committed
fix: ci
1 parent 47a82d8 commit 3d0bd51

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ env:
22
NAME: uids_postgres
33
EXT_NAME: uids_postgres
44
PKG_NAME: uids_postgres
5+
56
name: Release
7+
68
on:
79
push:
810
tags: [v*]
11+
912
concurrency:
1013
group: ${{ github.workflow }}-${{ github.ref }}
14+
1115
jobs:
1216
create-release:
1317
name: Create release
@@ -19,14 +23,14 @@ jobs:
1923
id: create-release
2024
uses: actions/create-release@v1
2125
env:
22-
GITHUB_TOKEN: ${{ github.token }}
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2327
with:
2428
tag_name: ${{ github.ref }}
2529
release_name: ${{ github.ref }}
30+
2631
build-linux-gnu:
2732
name: Build & Release for linux
28-
needs:
29-
- create-release
33+
needs: create-release
3034
strategy:
3135
fail-fast: false
3236
matrix:
@@ -39,8 +43,10 @@ jobs:
3943
steps:
4044
- name: Checkout
4145
uses: actions/checkout@v4
46+
4247
- name: Install rust
4348
uses: dtolnay/rust-toolchain@1.78.0
49+
4450
- name: Install dependencies
4551
run: |
4652
# Add postgres package repo
@@ -58,12 +64,12 @@ jobs:
5864
# Ensure installed pg_config is first on path
5965
export PATH=$PATH:/usr/lib/postgresql/${{ matrix.postgres }}/bin
6066
61-
cargo install cargo-pgrx --version 0.11.2 --locked
67+
cargo install cargo-pgrx --version 0.11.4 --locked
6268
cargo pgrx init --pg${{ matrix.postgres }}=/usr/lib/postgresql/${{ matrix.postgres }}/bin/pg_config
69+
6370
- name: Build artifacts
6471
run: |
6572
# selects the pgVer from pg_config on path
66-
# https://github.com/tcdi/pgrx/issues/288
6773
cargo pgrx package --no-default-features --features pg${{ matrix.postgres }}
6874
6975
# Create installable package
@@ -107,12 +113,13 @@ jobs:
107113
sudo chown -R root:root package
108114
sudo chmod -R 00755 package
109115
sudo dpkg-deb -Zxz --build --root-owner-group package
116+
110117
- name: Upload artifacts
111118
uses: actions/upload-release-asset@v1
112119
env:
113-
GITHUB_TOKEN: ${{ github.token }}
120+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114121
with:
115122
upload_url: ${{ needs.create-release.outputs.upload_url }}
116123
asset_path: ./package.deb
117124
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

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "uids"
33
version = "0.0.0"
44
edition = "2021"
5+
publish = false
56

67
[lib]
78
crate-type = ["cdylib"]

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN \
3131
cargo --version
3232

3333
# pgrx
34-
RUN cargo install cargo-pgrx --version 0.11.2 --locked
34+
RUN cargo install cargo-pgrx --version 0.11.4 --locked
3535

3636
RUN cargo pgrx init --pg${PG_MAJOR} $(which pg_config)
3737

0 commit comments

Comments
 (0)