Skip to content

Commit 6456576

Browse files
committed
ga build
1 parent 0a00c28 commit 6456576

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,31 @@ jobs:
1919
override: true
2020
components: rustfmt, clippy
2121

22-
- name: Set up cargo cache
22+
- name: Cache Rust dependencies
2323
uses: actions/cache@v3
24-
continue-on-error: false
2524
with:
2625
path: |
27-
~/.cargo/bin/
28-
~/.cargo/registry/index/
29-
~/.cargo/registry/cache/
30-
~/.cargo/git/db/
31-
target/
26+
~/.cargo/registry
27+
~/.cargo/git
28+
target
3229
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
33-
restore-keys: ${{ runner.os }}-cargo-
30+
restore-keys: |
31+
${{ runner.os }}-cargo-
32+
33+
- name: Cache pgrx
34+
uses: actions/cache@v3
35+
with:
36+
path: ~/.pgrx
37+
key: ${{ runner.os }}-pgrx-${{ hashFiles('**/Cargo.lock') }}
38+
restore-keys: |
39+
${{ runner.os }}-pgrx-
3440
3541
- name: Install pgrx
3642
run: |
3743
cargo install --locked cargo-pgrx || true
3844
cargo pgrx init
45+
env:
46+
CARGO_HTTP_TIMEOUT: 300
3947

4048
- name: Lint
4149
run: |
@@ -70,4 +78,15 @@ jobs:
7078
with:
7179
profile: minimal
7280
toolchain: stable
73-
override: true
81+
override: true
82+
83+
- name: Cache Rust dependencies
84+
uses: actions/cache@v3
85+
with:
86+
path: |
87+
~/.cargo/registry
88+
~/.cargo/git
89+
target
90+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
91+
restore-keys: |
92+
${{ runner.os }}-cargo-

0 commit comments

Comments
 (0)