Skip to content

Commit

Permalink
💚
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon committed Sep 27, 2024
1 parent 18147ad commit e3fe4b9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 21 deletions.
12 changes: 8 additions & 4 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Setup
description: Setup Node.js and install dependencies

inputs:
github_token:
description: 'GitHub Token'
required: true
download_skia:
description: 'Download Skia Binary Artifacts'
required: false
default: 'true'

runs:
using: composite
Expand Down Expand Up @@ -32,6 +33,7 @@ runs:
shell: bash

- name: Download Skia Binary Artifacts
if: ${{ inputs.download_skia == 'true' }}
uses: dawidd6/action-download-artifact@v2
with:
workflow: "build-skia.yml"
Expand All @@ -40,11 +42,13 @@ runs:
branch: main

- name: Copy Artifacts to libs folder
if: ${{ inputs.download_skia == 'true' }}
working-directory: packages/skia
run: yarn workflow-copy-libs
shell: bash

- name: Copy Skia Headers
if: ${{ inputs.download_skia == 'true' }}
working-directory: packages/skia
run: yarn copy-skia-headers
shell: bash
shell: bash
23 changes: 6 additions & 17 deletions .github/workflows/build-skia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build SKIA
on: workflow_dispatch
jobs:
build:
runs-on: macos-latest
runs-on: macos-latest-large
steps:
- name: checkout
uses: actions/checkout@v3
Expand All @@ -18,22 +18,11 @@ jobs:
- name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@master

- name: Cache dependencies
id: yarn-cache
uses: actions/cache@v3
- name: Setup
uses: ./.github/actions/setup
with:
path: |
**/node_modules
.yarn/install-state.gz
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
${{ runner.os }}-yarn-
- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
shell: bash
download_skia: 'false'
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build Skia
working-directory: ./packages/skia
Expand Down Expand Up @@ -107,4 +96,4 @@ jobs:
with:
name: skia-ios-xcframeworks
path: |
./packages/skia/libs/ios/*.xcframework
./packages/skia/libs/ios/*.xcframework

0 comments on commit e3fe4b9

Please sign in to comment.