Skip to content

Commit

Permalink
chore: add to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Dec 6, 2023
1 parent 27c1109 commit e0f144d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,30 @@ jobs:
env:
CI: true

test:
name: Tests
runs-on: ubuntu-latest
continue-on-error: true
timeout-minutes: 15

steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Prepare Environment
run: |
corepack enable
yarn install
env:
CI: true
- name: Run tests
run: |
yarn unit
env:
CI: true

build:
name: Build binaries
runs-on: ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions tools/fetch_ffmpeg.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const platformInfo = `${process.platform}-${process.arch}`
const platformVersions = targetVersions[platformInfo]

if (platformVersions) {
const tmpPath = path.join(ffmpegRootDir, 'tmp.tar.xz')
const tmpPath = path.join(ffmpegRootDir, 'tmp')

for (const version of platformVersions) {
const versionPath = path.join(ffmpegRootDir, version.id)
Expand All @@ -40,7 +40,7 @@ if (platformVersions) {
await streamPipeline(response.body, createWriteStream(tmpPath))

// Extract it
if (versionPath.endsWith('.tar.xz')) {
if (version.url.endsWith('.tar.xz')) {
await fs.mkdir(versionPath).catch(() => null)
cp.execSync(`tar -xJf ${toPosix(tmpPath)} --strip-components=1 -C ${toPosix(versionPath)}`)
} else if (version.url.endsWith('.zip')) {
Expand Down

0 comments on commit e0f144d

Please sign in to comment.