Skip to content

Commit

Permalink
Try different extract
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvNC committed Jul 12, 2024
1 parent 87ce217 commit 7993d57
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/run-upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,23 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version-file: package.json
- run: sudo apt-get install -y bzip2
- run: bun install --frozen-lockfile
- run: bun run start -a

- name: Install bzip2
run: sudo apt-get install -y bzip2

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Build all dictionaries
run: bun run start -a

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion src/util/downloadDumps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export async function downloadDumps(lang: LanguageCode, date: string) {
// Extract the archive if it does not exist
if (!fileExists) {
console.log(`Extracting ${archivePath}`);
await $`bzip2 -dc ${archivePath} >${filePath}`;
await $`bzip2 -dk ${archivePath}`;
}

console.log(`Finished downloading and extracting ${lang} dump`);
Expand Down

0 comments on commit 7993d57

Please sign in to comment.