|
| 1 | +name: Build Skia Artifacts |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - * |
| 7 | + pull_request: |
| 8 | + |
| 9 | +jobs: |
| 10 | + headers: |
| 11 | + name: Headers |
| 12 | + runs-on: ubuntu-latest |
| 13 | + steps: |
| 14 | + - name: Checkout |
| 15 | + uses: actions/checkout@v4 |
| 16 | + with: |
| 17 | + submodules: recursive |
| 18 | + |
| 19 | + - name: Sync Skia dependencies |
| 20 | + run: | |
| 21 | + export PATH="${GITHUB_WORKSPACE}/depot_tools:${PATH}" |
| 22 | + cd skia |
| 23 | + python3 tools/git-sync-deps |
| 24 | +
|
| 25 | + - name: Build headers |
| 26 | + run: python3 scripts/build.py headers |
| 27 | + |
| 28 | + - name: Upload headers |
| 29 | + uses: actions/upload-artifact@v4 |
| 30 | + with: |
| 31 | + name: headers |
| 32 | + path: artifacts/headers |
| 33 | + |
| 34 | + windows: |
| 35 | + name: Windows (${{ matrix.arch }}) |
| 36 | + runs-on: windows-latest |
| 37 | + strategy: |
| 38 | + matrix: |
| 39 | + arch: [x64, arm64] |
| 40 | + env: |
| 41 | + DEPOT_TOOLS_WIN_TOOLCHAIN: "0" |
| 42 | + steps: |
| 43 | + - name: Checkout |
| 44 | + uses: actions/checkout@v4 |
| 45 | + with: |
| 46 | + submodules: recursive |
| 47 | + |
| 48 | + - name: Sync Skia dependencies |
| 49 | + shell: pwsh |
| 50 | + run: | |
| 51 | + $env:PATH = "${{ github.workspace }}\depot_tools;" + $env:PATH |
| 52 | + Set-Location skia |
| 53 | + python tools/git-sync-deps |
| 54 | +
|
| 55 | + - name: Build ${{ matrix.arch }} |
| 56 | + shell: pwsh |
| 57 | + run: | |
| 58 | + python scripts/build.py windows ${{ matrix.arch }} |
| 59 | +
|
| 60 | + - name: Upload artifact |
| 61 | + uses: actions/upload-artifact@v4 |
| 62 | + with: |
| 63 | + name: windows-${{ matrix.arch }} |
| 64 | + path: artifacts/windows_${{ matrix.arch }} |
| 65 | + |
| 66 | + macos: |
| 67 | + name: macOS (${{ matrix.arch }}) |
| 68 | + runs-on: macos-latest |
| 69 | + strategy: |
| 70 | + matrix: |
| 71 | + arch: [x64, arm64] |
| 72 | + steps: |
| 73 | + - name: Checkout |
| 74 | + uses: actions/checkout@v4 |
| 75 | + with: |
| 76 | + submodules: recursive |
| 77 | + |
| 78 | + - name: Sync Skia dependencies |
| 79 | + run: | |
| 80 | + export PATH="${GITHUB_WORKSPACE}/depot_tools:${PATH}" |
| 81 | + cd skia |
| 82 | + python3 tools/git-sync-deps |
| 83 | +
|
| 84 | + - name: Build ${{ matrix.arch }} |
| 85 | + run: python3 scripts/build.py macos ${{ matrix.arch }} |
| 86 | + |
| 87 | + - name: Upload artifact |
| 88 | + uses: actions/upload-artifact@v4 |
| 89 | + with: |
| 90 | + name: macos-${{ matrix.arch }} |
| 91 | + path: artifacts/macos_${{ matrix.arch }} |
0 commit comments