|
27 | 27 | key: build-cache-st-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }} |
28 | 28 | restore-keys: | |
29 | 29 | build-cache-st-v1- |
30 | | - - name: Configure sandbox permissions |
31 | | - run: | |
32 | | - sudo chown root:root chrome_sandbox |
33 | | - sudo chmod 4755 chrome_sandbox |
34 | | - export CHROME_DEVEL_SANDBOX="$PWD/chrome_sandbox" |
35 | 30 | - name: Build ffmpeg-core |
36 | 31 | run: make prd EXTRA_ARGS="--cache-from=type=local,src=build-cache-st --cache-to=type=local,dest=build-cache-st,mode=max" |
37 | 32 | - name: Upload core |
|
55 | 50 | key: build-cache-mt-v1-${{ hashFiles('Dockerfile', 'Makefile', 'build/*') }} |
56 | 51 | restore-keys: | |
57 | 52 | build-cache-v1- |
58 | | - - name: Configure sandbox permissions |
59 | | - run: | |
60 | | - sudo chown root:root chrome_sandbox |
61 | | - sudo chmod 4755 chrome_sandbox |
62 | | - export CHROME_DEVEL_SANDBOX="$PWD/chrome_sandbox" |
63 | 53 | - name: Build ffmpet-core-mt |
64 | 54 | run: make prd-mt EXTRA_ARGS="--cache-from=type=local,src=build-cache-mt --cache-to=type=local,dest=build-cache-mt,mode=max" |
65 | 55 | - name: Upload core-mt |
|
85 | 75 | with: |
86 | 76 | name: ffmpeg-core-mt |
87 | 77 | path: packages/core-mt/dist |
88 | | - - name: Configure sandbox permissions |
89 | | - run: | |
90 | | - sudo chown root:root chrome_sandbox |
91 | | - sudo chmod 4755 chrome_sandbox |
92 | | - export CHROME_DEVEL_SANDBOX="$PWD/chrome_sandbox" |
93 | 78 | - name: Use Node.js 18 |
94 | 79 | uses: actions/setup-node@v2 |
95 | 80 | with: |
|
104 | 89 | node-modules- |
105 | 90 | - name: Install dependencies |
106 | 91 | run: npm install |
| 92 | + - name: Install Chrome dependencies |
| 93 | + run: | |
| 94 | + sudo apt-get update |
| 95 | + 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 |
107 | 96 | - name: Run tests |
108 | 97 | run: npm test |
0 commit comments