mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-16 08:18:59 +00:00
ci: add install step for ios and target_env
This commit is contained in:
13
.github/actions/install/action.yml
vendored
13
.github/actions/install/action.yml
vendored
@@ -14,6 +14,10 @@ inputs:
|
|||||||
description: 'OS used to select the v8 lib'
|
description: 'OS used to select the v8 lib'
|
||||||
required: false
|
required: false
|
||||||
default: 'linux'
|
default: 'linux'
|
||||||
|
target-env:
|
||||||
|
description: 'TARGET_ENVIRONMENT used to select the v8 lib, only for ios build'
|
||||||
|
required: false
|
||||||
|
default: 'simulator'
|
||||||
zig-v8:
|
zig-v8:
|
||||||
description: 'zig v8 version to install'
|
description: 'zig v8 version to install'
|
||||||
required: false
|
required: false
|
||||||
@@ -51,13 +55,20 @@ runs:
|
|||||||
path: ${{ inputs.cache-dir }}/v8
|
path: ${{ inputs.cache-dir }}/v8
|
||||||
key: libc_v8_${{ inputs.v8 }}_${{ inputs.os }}_${{ inputs.arch }}_${{ inputs.zig-v8 }}.a
|
key: libc_v8_${{ inputs.v8 }}_${{ inputs.os }}_${{ inputs.arch }}_${{ inputs.zig-v8 }}.a
|
||||||
|
|
||||||
- if: ${{ steps.cache-v8.outputs.cache-hit != 'true' }}
|
- if: ${{ steps.cache-v8.outputs.cache-hit != 'true' && inputs.os != 'ios' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ${{ inputs.cache-dir }}/v8
|
mkdir -p ${{ inputs.cache-dir }}/v8
|
||||||
|
|
||||||
wget -O ${{ inputs.cache-dir }}/v8/libc_v8.a https://github.com/lightpanda-io/zig-v8-fork/releases/download/${{ inputs.zig-v8 }}/libc_v8_${{ inputs.v8 }}_${{ inputs.os }}_${{ inputs.arch }}.a
|
wget -O ${{ inputs.cache-dir }}/v8/libc_v8.a https://github.com/lightpanda-io/zig-v8-fork/releases/download/${{ inputs.zig-v8 }}/libc_v8_${{ inputs.v8 }}_${{ inputs.os }}_${{ inputs.arch }}.a
|
||||||
|
|
||||||
|
- if: ${{ steps.cache-v8.outputs.cache-hit != 'true' && inputs.os == 'ios' }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mkdir -p ${{ inputs.cache-dir }}/v8
|
||||||
|
|
||||||
|
wget -O ${{ inputs.cache-dir }}/v8/libc_v8.a https://github.com/lightpanda-io/zig-v8-fork/releases/download/${{ inputs.zig-v8 }}/libc_v8_${{ inputs.v8 }}_${{ inputs.os }}_${{ inputs.target-env }}_${{ inputs.arch }}.a
|
||||||
|
|
||||||
- name: install v8
|
- name: install v8
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user