Skip to content

Commit

Permalink
chore: change Debian package stability from 'unstable' to 'stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
andrielfn committed Sep 21, 2024
1 parent 19df556 commit b7204c8
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-deb/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
postgresql-ulid ({{PKG_VERSION}}) unstable; urgency=medium
postgresql-ulid ({{PKG_VERSION}}) stable; urgency=medium

* Initial release.

Expand Down
8 changes: 5 additions & 3 deletions .github/actions/build-deb/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ Priority: optional
Maintainer: {{MAINTAINER_NAME}} <{{MAINTAINER_EMAIL}}>
Build-Depends: debhelper (>= 10), postgresql-server-dev-all
Standards-Version: 4.5.0
Homepage: https://github.com/{{GITHUB_USERNAME}}/postgres-ulid
Homepage: https://github.com/{{GITHUB_USERNAME}}/pg-ulid

Package: {{PKG_NAME}}
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, postgresql-14 | postgresql-15 | postgresql-16 | postgresql (>= 14)
Description: PostgreSQL ULID extension
This extension enables efficient storage and manipulation of 128-bit Universal Unique Identifiers (ULIDs).
Description: ULID extension for PostgreSQL
This package provides a ULID (Universally Unique Lexicographically Sortable
Identifier) extension for PostgreSQL. ULIDs are sortable, random, and generate
unique 128-bit identifiers.
58 changes: 29 additions & 29 deletions .github/workflows/build-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,38 +27,38 @@ jobs:
name: postgresql-ulid-deb
path: ./*.deb

# test:
# name: Test
# needs: build
# runs-on: ubuntu-22.04
# steps:
# - name: Download package
# uses: actions/download-artifact@v3
# with:
# name: postgresql-ulid-deb
# - name: Install PostgreSQL 16
# run: |
# sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
# curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
# sudo apt-get update
# sudo apt-get install -y postgresql-16 postgresql-contrib-16
# - name: Start PostgreSQL service
# run: |
# sudo systemctl start postgresql
# sudo systemctl status postgresql
# - name: Install package
# run: |
# sudo dpkg -i *.deb
# sudo apt-get install -f
# - name: Test PostgreSQL extension
# run: |
# sudo -u postgres psql -c "CREATE EXTENSION ulid;"
# sudo -u postgres psql -c "SELECT gen_ulid();"
# sudo -u postgres psql -c "SELECT '01H55TNAQ96WPSWE6WZRCH9G0C'::ulid::timestamp;"
test:
name: Test
needs: build
runs-on: ubuntu-22.04
steps:
- name: Download package
uses: actions/download-artifact@v3
with:
name: postgresql-ulid-deb
- name: Install PostgreSQL 16
run: |
sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
sudo apt-get update
sudo apt-get install -y postgresql-16 postgresql-contrib-16
- name: Start PostgreSQL service
run: |
sudo systemctl start postgresql
sudo systemctl status postgresql
- name: Install package
run: |
sudo dpkg -i *.deb
sudo apt-get install -f
- name: Test PostgreSQL extension
run: |
sudo -u postgres psql -c "CREATE EXTENSION ulid;"
sudo -u postgres psql -c "SELECT gen_ulid();"
sudo -u postgres psql -c "SELECT '01H55TNAQ96WPSWE6WZRCH9G0C'::ulid::timestamp;"
release:
name: Create Release
needs: [build]
needs: [build, test]
runs-on: ubuntu-22.04
steps:
- name: Download package
Expand Down

0 comments on commit b7204c8

Please sign in to comment.