Skip to content

wat

wat #4

Workflow file for this run

name: Build Skia Artifacts
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
headers:
if: false
name: Headers
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
persist-credentials: true
clean: false
- name: Sync Skia dependencies
run: |
export PATH="${GITHUB_WORKSPACE}/depot_tools:${PATH}"
cd skia
python3 tools/git-sync-deps
- name: Build headers
run: python3 scripts/build.py headers
- name: Upload headers
uses: actions/upload-artifact@v4
with:
name: headers
path: artifacts/headers
windows:
if: false
name: Windows (${{ matrix.arch }})
runs-on: windows-latest
strategy:
matrix:
arch: [x64, arm64]
env:
DEPOT_TOOLS_WIN_TOOLCHAIN: "0"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
persist-credentials: true
clean: false
- name: Sync Skia dependencies
shell: pwsh
run: |
$env:PATH = "${{ github.workspace }}\depot_tools;" + $env:PATH
Set-Location skia
python tools/git-sync-deps
- name: Build ${{ matrix.arch }}
shell: pwsh
run: |
python scripts/build.py windows ${{ matrix.arch }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: windows-${{ matrix.arch }}
path: artifacts/windows_${{ matrix.arch }}
macos:
name: macOS (${{ matrix.arch }})
runs-on: macos-latest
strategy:
matrix:
arch:
- x64
# - arm64 # disabled for now
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
persist-credentials: true
clean: false
- name: Sync Skia dependencies
run: |
set -x
set -e
export PATH="${GITHUB_WORKSPACE}/depot_tools:${PATH}"
cd depot_tools
./update_depot_tools
cd ../skia
python3 tools/git-sync-deps
find . |grep reldir.txt
- name: Build ${{ matrix.arch }}
run: python3 scripts/build.py macos ${{ matrix.arch }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: macos-${{ matrix.arch }}
path: artifacts/macos_${{ matrix.arch }}