Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on:
env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -95,6 +96,15 @@ jobs:
submodules: true
token: ${{ secrets.GH_PAT }}

- name: Free disk space and show usage
run: |
echo "Disk usage before cleanup"
df -h
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /usr/local/.ghcup
docker system prune -af || true
echo "Disk usage after cleanup"
df -h

- name: Install Rust nightly
run: |
rustup toolchain install nightly --profile minimal --component clippy
Expand All @@ -116,20 +126,26 @@ jobs:
libxslt1-dev \
libicu-dev

- name: Cache cargo dependencies
uses: actions/cache@v4
- name: Cache cargo-pgrx tool
uses: actions/cache@v5
with:
path: |
~/.cargo/.crates2.json
~/.cargo/bin/cargo-pgrx
key: ${{ runner.os }}-cargo-pgrx-0.16.1-v1

- name: Cache Cargo dependency sources
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin/cargo-pgrx
target
key: ${{ runner.os }}-cargo-pg${{ matrix.pg_version }}-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-deps-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-pg${{ matrix.pg_version }}-
${{ runner.os }}-cargo-deps-

- name: Cache PostgreSQL build
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/.pgrx/config.toml
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ jobs:
libicu-dev

- name: Cache cargo-pgrx tool
uses: actions/cache@v4
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@v4
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
Expand All @@ -71,7 +71,7 @@ jobs:
${{ runner.os }}-copilot-setup-cargo-deps-rust-stable-

- name: Cache pgrx PostgreSQL downloads
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/.pgrx/config.toml
Expand Down
Loading