Skip to content

Commit

Permalink
export install.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sadym-chromium committed Nov 4, 2024
1 parent 48a07fc commit 13f5ade
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
run: 'exit 1'
- run: 'exit 0'
e2e:
uses: .github/workflows/install.yml
name: ${{ matrix.this_chunk }}/${{ matrix.total_chunks }} ${{ matrix.os }}-${{ matrix.head }}
strategy:
fail-fast: false
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on: workflow_call
jobs:
cache_browser:
strategy:
fail-fast: false
matrix:
# TODO(#876): Add Windows CI.
# TODO(#2154): Use macos-latest once Python setup supports mac arm64.
os: [ubuntu-latest, macos-13]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: '.nvmrc'
cache: npm
- uses: google/wireit@83d7f8bed70b7bcfc40f4b9f54f4b7485753991b # setup-github-actions-caching/v2.0.1
- name: Install and build npm dependencies
run: npm ci
- name: Setup cache for browser binaries
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: ~/.cache/chromium-bidi
key: ${{ runner.os }}-browsers-${{ hashFiles('.browser') }}
- name: ls cache
run: find ~ -maxdepth 1 -type d -name ".cache/chromium-bidi" -exec ls {} \;
- name: Install pinned chrome
run: node tools/install-browser.mjs
- name: Install pinned chrome headless shell
run: node tools/install-browser.mjs --chrome-headless-shell
- name: Install pinned chromedriver
run: node tools/install-browser.mjs --chromedriver
- name: ls cache
run: ls ~/.cache/chromium-bidi
- name: paths
run: |
echo "browser: ${{ steps.browser.outputs.executablePath }}"
echo "chrome: ${{ steps.chrome.outputs.executablePath }}"
echo "headless-shell: ${{ steps.headless-shell.outputs.executablePath }}"

0 comments on commit 13f5ade

Please sign in to comment.