Remove obsolete duroxide migration verification references #34
Workflow file for this run
This file contains hidden or 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: "Copilot Setup Steps" | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| pull_request: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| jobs: | |
| copilot-setup-steps: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 59 | |
| environment: copilot | |
| # Least privilege; checkout needs contents:read. | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: false | |
| - name: Initialize private submodule duroxide-pg-opt | |
| run: | | |
| test -n "${{ secrets.DUROXIDE_PG_OPT_TOKEN }}" | |
| git -c url."https://x-access-token:${{ secrets.DUROXIDE_PG_OPT_TOKEN }}@github.com/".insteadOf="https://github.com/" \ | |
| submodule update --init --recursive | |
| - name: Install Rust toolchain (stable) | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install system dependencies for pgrx | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| pkg-config \ | |
| libssl-dev \ | |
| libclang-dev \ | |
| clang \ | |
| bison \ | |
| flex \ | |
| libreadline-dev \ | |
| zlib1g-dev \ | |
| libxml2-dev \ | |
| libxslt1-dev \ | |
| libicu-dev | |
| - name: Cache cargo-pgrx tool | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.cargo/.crates2.json | |
| ~/.cargo/bin/cargo-pgrx | |
| key: ${{ runner.os }}-copilot-setup-cargo-pgrx-0.16.1-v1 | |
| - name: Cache Cargo dependency sources | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| key: ${{ runner.os }}-copilot-setup-cargo-deps-rust-stable-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-copilot-setup-cargo-deps-rust-stable- | |
| - name: Cache pgrx PostgreSQL downloads | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.pgrx/config.toml | |
| ~/.pgrx/17.* | |
| ~/.pgrx/18.* | |
| key: ${{ runner.os }}-copilot-setup-pgrx-0.16.1-pg17-18-v1 | |
| - name: Install cargo-pgrx | |
| run: | | |
| if ! command -v cargo-pgrx &> /dev/null || ! cargo pgrx --version | grep -q "0.16.1"; then | |
| cargo install cargo-pgrx --version 0.16.1 --locked | |
| else | |
| echo "cargo-pgrx 0.16.1 already installed, skipping" | |
| fi | |
| - name: Initialize pgrx (PostgreSQL 17 and 18) | |
| run: | | |
| has_pg17="$(compgen -G "$HOME/.pgrx/17.*" || true)" | |
| has_pg18="$(compgen -G "$HOME/.pgrx/18.*" || true)" | |
| if [ -z "$has_pg17" ]; then | |
| echo "PostgreSQL 17 missing; initializing" | |
| cargo pgrx init --pg17 download | |
| else | |
| echo "PostgreSQL 17 already initialized, skipping download" | |
| fi | |
| if [ -z "$has_pg18" ]; then | |
| echo "PostgreSQL 18 missing; initializing" | |
| cargo pgrx init --pg18 download | |
| else | |
| echo "PostgreSQL 18 already initialized, skipping download" | |
| fi | |
| - name: Verify pgrx installation | |
| run: cargo pgrx --version | |
| # Warm Cargo caches so later builds/tests are faster and more reliable. | |
| - name: Prefetch Rust dependencies | |
| run: | | |
| cargo fetch |