Skip to content

Commit

Permalink
chrome dependencies gh actions fix x2
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgelfond committed Dec 24, 2024
1 parent 3d1d18e commit b832bb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ jobs:
key: build-cache-st-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
restore-keys: |
build-cache-st-v1-
- name: Configure sandbox permissions
run: |
sudo chown root:root chrome_sandbox
sudo chmod 4755 chrome_sandbox
export CHROME_DEVEL_SANDBOX="$PWD/chrome_sandbox"
- name: Build ffmpeg-core
run: make prd EXTRA_ARGS="--cache-from=type=local,src=build-cache-st --cache-to=type=local,dest=build-cache-st,mode=max"
- name: Upload core
Expand All @@ -55,11 +50,6 @@ jobs:
key: build-cache-mt-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
restore-keys: |
build-cache-v1-
- name: Configure sandbox permissions
run: |
sudo chown root:root chrome_sandbox
sudo chmod 4755 chrome_sandbox
export CHROME_DEVEL_SANDBOX="$PWD/chrome_sandbox"
- name: Build ffmpet-core-mt
run: make prd-mt EXTRA_ARGS="--cache-from=type=local,src=build-cache-mt --cache-to=type=local,dest=build-cache-mt,mode=max"
- name: Upload core-mt
Expand All @@ -85,11 +75,6 @@ jobs:
with:
name: ffmpeg-core-mt
path: packages/core-mt/dist
- name: Configure sandbox permissions
run: |
sudo chown root:root chrome_sandbox
sudo chmod 4755 chrome_sandbox
export CHROME_DEVEL_SANDBOX="$PWD/chrome_sandbox"
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
Expand All @@ -104,5 +89,9 @@ jobs:
node-modules-
- name: Install dependencies
run: npm install
- name: Install Chrome dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgbm-dev libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 libgbm1
- name: Run tests
run: npm test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"serve": "http-server -c-1 -s -p 3000 .",
"test": "server-test test:browser:server 3000 test:all",
"test:all": "npm-run-all test:browser:*:*",
"test:browser": "mocha-headless-chrome -a enable-features=SharedArrayBuffer",
"test:browser": "mocha-headless-chrome -a enable-features=SharedArrayBuffer -a no-sandbox",
"test:browser:core:mt": "npm run test:browser -- -f http://localhost:3000/tests/ffmpeg-core-mt.test.html",
"test:browser:core:st": "npm run test:browser -- -f http://localhost:3000/tests/ffmpeg-core-st.test.html",
"test:browser:ffmpeg:mt": "npm run test:browser -- -f http://localhost:3000/tests/ffmpeg-mt.test.html",
Expand Down

0 comments on commit b832bb5

Please sign in to comment.