chrome dependencies gh actions fix x2
This commit is contained in:
parent
3d1d18ef10
commit
b832bb58d3
19
.github/workflows/CI.yml
vendored
19
.github/workflows/CI.yml
vendored
@ -27,11 +27,6 @@ jobs:
|
|||||||
key: build-cache-st-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
|
key: build-cache-st-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
build-cache-st-v1-
|
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
|
- 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"
|
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
|
- name: Upload core
|
||||||
@ -55,11 +50,6 @@ jobs:
|
|||||||
key: build-cache-mt-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
|
key: build-cache-mt-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
build-cache-v1-
|
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
|
- 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"
|
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
|
- name: Upload core-mt
|
||||||
@ -85,11 +75,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ffmpeg-core-mt
|
name: ffmpeg-core-mt
|
||||||
path: packages/core-mt/dist
|
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
|
- name: Use Node.js 18
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
@ -104,5 +89,9 @@ jobs:
|
|||||||
node-modules-
|
node-modules-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
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
|
- name: Run tests
|
||||||
run: npm test
|
run: npm test
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
"serve": "http-server -c-1 -s -p 3000 .",
|
"serve": "http-server -c-1 -s -p 3000 .",
|
||||||
"test": "server-test test:browser:server 3000 test:all",
|
"test": "server-test test:browser:server 3000 test:all",
|
||||||
"test:all": "npm-run-all test:browser:*:*",
|
"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: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: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",
|
"test:browser:ffmpeg:mt": "npm run test:browser -- -f http://localhost:3000/tests/ffmpeg-mt.test.html",
|
||||||
|
Loading…
Reference in New Issue
Block a user