Skip to content

Commit

Permalink
Use pbzip2 for faster unzip
Browse files Browse the repository at this point in the history
  • Loading branch information
dfsnow committed Jul 4, 2023
1 parent 3f6f43f commit 003d8a7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,18 @@ jobs:
fail-on-cache-miss: true
enableCrossOsArchive: true

- name: Unpack database (*nix)
if: runner.os != 'Windows'
run: bzip2 -d ptaxsim.db.bz2
- name: Unpack database (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get install -y pbzip2
pbzip2 -d ptaxsim.db.bz2
shell: bash

- name: Unpack database (macOS)
if: runner.os == 'macOS'
run: |
brew install pbzip2
pbzip2 -d ptaxsim.db.bz2
shell: bash

- name: Unpack database (Windows)
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ jobs:
fail-on-cache-miss: true

- name: Unpack database
run: bzip2 -d ptaxsim.db.bz2
run: |
sudo apt-get install -y pbzip2
pbzip2 -d ptaxsim.db.bz2
shell: bash

- name: Build site
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ jobs:
fail-on-cache-miss: true

- name: Unpack database
run: bzip2 -d ptaxsim.db.bz2
run: |
sudo apt-get install -y pbzip2
pbzip2 -d ptaxsim.db.bz2
shell: bash

- name: Test coverage
Expand Down

0 comments on commit 003d8a7

Please sign in to comment.