Introduce a blocklist of "yanked" Postgres versions #360
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: verify package can build | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
TOOL_DIR: ./tools | |
PG_VER: 14 | |
jobs: | |
ubuntu: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: "v1-pgrx--package-test" | |
- name: Setup release Postgres apt repo | |
run: | | |
sudo apt-get install -y wget gnupg | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
- name: Install Postgres deps | |
run: | | |
sudo apt-get update -y -qq --fix-missing | |
sudo apt-get install -y postgresql-server-dev-$PG_VER | |
- name: Rustup | |
run: $TOOL_DIR/rustup.sh nightly | |
- name: Report version | |
run: | | |
cargo --version | |
pg_config --version | |
- name: Install cargo pgrx | |
run: cargo +nightly install --path cargo-pgrx --debug | |
- name: cargo pgrx init | |
run: cargo +nightly pgrx init "--pg$PG_VER=$(which pg_config)" | |
- name: Test pgrx can be packaged as a new version | |
run: | | |
./update-versions.sh 0.0.999-rc.999 && \ | |
cargo +nightly package \ | |
--workspace -Zpackage-workspace \ | |
--allow-dirty \ | |
--features "pg$PG_VER" |