Skip to content

Commit

Permalink
🚧 Make build pipeline cache-able and btrfs-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
NAlexPear committed Jul 22, 2023
1 parent 9d4aa0e commit bd6b5f4
Show file tree
Hide file tree
Showing 3 changed files with 1,824 additions and 4 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,18 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.pgrx/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-pgrx
run: cargo install cargo-pgrx
- name: ⚡ Cache pgrx
uses: actions/cache@v3
with:
path: |
~/.pgrx/
key: ${{ runner.os }}-pgrx
- name: Initialize pgrx
run: |
[ ! -f ~/.pgrx/config.toml ] && cargo pgrx init
Expand All @@ -52,23 +57,31 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update -y && sudo apt-get install -y btrfs-progs
- name: Checkout sources
uses: actions/checkout@v3
- name: ⚡ Cache
- name: ⚡ Cache Cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.pgrx/
target/
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-pgrx
run: cargo install cargo-pgrx
- name: ⚡ Cache pgrx
uses: actions/cache@v3
with:
path: |
~/.pgrx/
key: ${{ runner.os }}-pgrx
- name: Initialize pgrx
run: |
[ ! -f ~/.pgrx/config.toml ] && cargo pgrx init
Expand Down Expand Up @@ -96,6 +109,12 @@ jobs:
components: clippy
- name: Install cargo-pgrx
run: cargo install cargo-pgrx
- name: ⚡ Cache pgrx
uses: actions/cache@v3
with:
path: |
~/.pgrx/
key: ${{ runner.os }}-pgrx
- name: Initialize pgrx
run: |
[ ! -f ~/.pgrx/config.toml ] && cargo pgrx init
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
/target
*.iml
**/*.rs.bk
Cargo.lock
.ccls-cache
Loading

0 comments on commit bd6b5f4

Please sign in to comment.