Skip to content

Commit

Permalink
ga build
Browse files Browse the repository at this point in the history
  • Loading branch information
4kimov committed Dec 21, 2024
1 parent 0a00c28 commit 6456576
Showing 1 changed file with 28 additions and 9 deletions.
37 changes: 28 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,31 @@ jobs:
override: true
components: rustfmt, clippy

- name: Set up cargo cache
- name: Cache Rust dependencies
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
restore-keys: |
${{ runner.os }}-cargo-
- name: Cache pgrx
uses: actions/cache@v3
with:
path: ~/.pgrx
key: ${{ runner.os }}-pgrx-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-pgrx-
- name: Install pgrx
run: |
cargo install --locked cargo-pgrx || true
cargo pgrx init
env:
CARGO_HTTP_TIMEOUT: 300

- name: Lint
run: |
Expand Down Expand Up @@ -70,4 +78,15 @@ jobs:
with:
profile: minimal
toolchain: stable
override: true
override: true

- name: Cache Rust dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-

0 comments on commit 6456576

Please sign in to comment.