Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/actions/publish-library-to-gpr/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,9 @@ runs:
shell: bash
working-directory: ${{ steps.resolve_dir.outputs.dir }}
if: steps.determine_version.outputs.version != steps.determine_version.outputs.package_version
env:
PKG_VERSION: ${{ steps.determine_version.outputs.version }}
run: |
echo "Updating version to ${PKG_VERSION}"
npm version "${PKG_VERSION}" --no-git-tag-version --allow-same-version
echo "Updating version to ${{ steps.determine_version.outputs.version }}"
npm version ${{ steps.determine_version.outputs.version }} --no-git-tag-version --allow-same-version

- name: Check version exists in GitHub Packages
continue-on-error: true
Expand Down
14 changes: 6 additions & 8 deletions .github/actions/sanity-checks/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@ runs:
github.event_name == 'pull_request'
continue-on-error: true
env:
GH_REPOSITORY: ${{ github.repository }}
PR_BASE_REF: ${{ github.event.pull_request.base.ref }}
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
PR_FORK_URL: ${{ github.event.pull_request.head.repo.clone_url }}
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
run: |
git remote set-url origin "https://github.com/${GH_REPOSITORY}.git"
git remote set-url origin https://github.com/${{ github.repository }}.git
git fetch origin +refs/heads/*:refs/remotes/origin/*
git fetch origin "${PR_BASE_REF}:refs/remotes/origin/${PR_BASE_REF}"
git fetch origin "${PR_HEAD_REF}:refs/pr/head" || git fetch "${PR_FORK_URL}" "${PR_HEAD_REF}:refs/pr/head"
git fetch origin "$PR_BASE_REF:refs/remotes/origin/$PR_BASE_REF"
git fetch origin "$PR_HEAD_REF:refs/pr/head" || git fetch "$PR_FORK_URL" "$PR_HEAD_REF:refs/pr/head"

- name: Check PR status vs. target branch
shell: bash
Expand All @@ -57,10 +56,9 @@ runs:
github.event_name == 'pull_request_target' ||
github.event_name == 'pull_request'
continue-on-error: true
env:
TARGET_SHA: ${{ github.event.pull_request.base.sha }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: |
TARGET_SHA=${{ github.event.pull_request.base.sha }}
PR_HEAD_SHA=${{ github.event.pull_request.head.sha }}
if ! git merge-base --is-ancestor "$TARGET_SHA" "$PR_HEAD_SHA"; then
echo "::error title=PR is not up to date::This PR is not up to date with target branch"
echo "ℹ️ Suggestion: Consider rebasing or merging the latest changes from the target branch"
Expand Down
18 changes: 2 additions & 16 deletions .github/workflows/integration-mobile-test-diffusion-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,32 +110,18 @@ jobs:
if: matrix.platform == 'Android' && !inputs.package
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-android-staging
path: ${{ env.ADDON_WORKDIR }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}android-*
merge-multiple: true

- name: Move Android prebuilds from staging
if: matrix.platform == 'Android' && !inputs.package
run: |
mkdir -p ${{ env.ADDON_WORKDIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-android-staging/* ${{ env.ADDON_WORKDIR }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download iOS prebuilds (from artifacts)
if: matrix.platform == 'iOS' && !inputs.package
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-ios-staging
path: ${{ env.ADDON_WORKDIR }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}ios-*
merge-multiple: true

- name: Move iOS prebuilds from staging
if: matrix.platform == 'iOS' && !inputs.package
run: |
mkdir -p ${{ env.ADDON_WORKDIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-ios-staging/* ${{ env.ADDON_WORKDIR }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download prebuilds from package
Expand Down
18 changes: 2 additions & 16 deletions .github/workflows/integration-mobile-test-ocr-onnx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,32 +113,18 @@ jobs:
if: matrix.platform == 'Android' && !inputs.package
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-android-staging
path: addon/${{ inputs.workdir || env.PKG_DIR }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}android-*
merge-multiple: true

- name: Move Android prebuilds from staging
if: matrix.platform == 'Android' && !inputs.package
run: |
mkdir -p addon/${{ inputs.workdir || env.PKG_DIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-android-staging/* addon/${{ inputs.workdir || env.PKG_DIR }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download iOS prebuilds (from artifacts)
if: matrix.platform == 'iOS' && !inputs.package
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-ios-staging
path: addon/${{ inputs.workdir || env.PKG_DIR }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}ios-*
merge-multiple: true

- name: Move iOS prebuilds from staging
if: matrix.platform == 'iOS' && !inputs.package
run: |
mkdir -p addon/${{ inputs.workdir || env.PKG_DIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-ios-staging/* addon/${{ inputs.workdir || env.PKG_DIR }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download prebuilds from package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,32 +123,18 @@ jobs:
if: matrix.platform == 'Android' && !inputs.package
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-android-staging
path: ${{ env.ADDON_DIR }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}android-*
merge-multiple: true

- name: Move Android prebuilds from staging
if: matrix.platform == 'Android' && !inputs.package
run: |
mkdir -p ${{ env.ADDON_DIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-android-staging/* ${{ env.ADDON_DIR }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download iOS prebuilds (from artifacts)
if: matrix.platform == 'iOS' && !inputs.package
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-ios-staging
path: ${{ env.ADDON_DIR }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}ios-*
merge-multiple: true

- name: Move iOS prebuilds from staging
if: matrix.platform == 'iOS' && !inputs.package
run: |
mkdir -p ${{ env.ADDON_DIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-ios-staging/* ${{ env.ADDON_DIR }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download prebuilds from package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,32 +119,18 @@ jobs:
if: matrix.platform == 'Android' && !inputs.package
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-android-staging
path: ${{ env.ADDON_WORKDIR }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}android-*
merge-multiple: true

- name: Move Android prebuilds from staging
if: matrix.platform == 'Android' && !inputs.package
run: |
mkdir -p ${{ env.ADDON_WORKDIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-android-staging/* ${{ env.ADDON_WORKDIR }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download iOS prebuilds (from artifacts)
if: matrix.platform == 'iOS' && !inputs.package
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-ios-staging
path: ${{ env.ADDON_WORKDIR }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}ios-*
merge-multiple: true

- name: Move iOS prebuilds from staging
if: matrix.platform == 'iOS' && !inputs.package
run: |
mkdir -p ${{ env.ADDON_WORKDIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-ios-staging/* ${{ env.ADDON_WORKDIR }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download prebuilds from package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,32 +116,18 @@ jobs:
if: matrix.platform == 'Android' && !inputs.package
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-android-staging
path: monorepo/${{ inputs.workdir || env.PKG_DIR }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}android-*
merge-multiple: true

- name: Move Android prebuilds from staging
if: matrix.platform == 'Android' && !inputs.package
run: |
mkdir -p monorepo/${{ inputs.workdir || env.PKG_DIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-android-staging/* monorepo/${{ inputs.workdir || env.PKG_DIR }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download iOS prebuilds (from artifacts)
if: matrix.platform == 'iOS' && !inputs.package
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-ios-staging
path: monorepo/${{ inputs.workdir || env.PKG_DIR }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}ios-*
merge-multiple: true

- name: Move iOS prebuilds from staging
if: matrix.platform == 'iOS' && !inputs.package
run: |
mkdir -p monorepo/${{ inputs.workdir || env.PKG_DIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-ios-staging/* monorepo/${{ inputs.workdir || env.PKG_DIR }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download prebuilds from package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,32 +124,18 @@ jobs:
if: matrix.platform == 'Android' && github.event_name != 'workflow_dispatch'
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-android-staging
path: ${{ env.ADDON_DIR }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}android-*
merge-multiple: true

- name: Move Android prebuilds from staging
if: matrix.platform == 'Android' && !inputs.package
run: |
mkdir -p ${{ env.ADDON_DIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-android-staging/* ${{ env.ADDON_DIR }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download iOS prebuilds (from artifacts)
if: matrix.platform == 'iOS' && github.event_name != 'workflow_dispatch'
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-ios-staging
path: ${{ env.ADDON_DIR }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}ios-*
merge-multiple: true

- name: Move iOS prebuilds from staging
if: matrix.platform == 'iOS' && !inputs.package
run: |
mkdir -p ${{ env.ADDON_DIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-ios-staging/* ${{ env.ADDON_DIR }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download prebuilds (from npm - workflow_dispatch)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,33 +131,19 @@ jobs:
id: artifact_android
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-android-staging
path: ${{ env.ADDON_DIR }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}android-*
merge-multiple: true

- name: Move Android prebuilds from staging
if: matrix.platform == 'Android' && !inputs.package
run: |
mkdir -p ${{ env.ADDON_DIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-android-staging/* ${{ env.ADDON_DIR }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download iOS prebuilds (from artifacts)
if: matrix.platform == 'iOS' && github.event_name != 'workflow_dispatch'
id: artifact_ios
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-ios-staging
path: ${{ env.ADDON_DIR }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}ios-*
merge-multiple: true

- name: Move iOS prebuilds from staging
if: matrix.platform == 'iOS' && !inputs.package
run: |
mkdir -p ${{ env.ADDON_DIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-ios-staging/* ${{ env.ADDON_DIR }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download prebuilds (from npm - workflow_dispatch)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,32 +117,18 @@ jobs:
if: matrix.platform == 'Android' && github.event_name != 'workflow_dispatch'
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-android-staging
path: addon/${{ inputs.workdir }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}android-*
merge-multiple: true

- name: Move Android prebuilds from staging
if: matrix.platform == 'Android' && !inputs.package
run: |
mkdir -p addon/${{ inputs.workdir }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-android-staging/* addon/${{ inputs.workdir }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download iOS prebuilds (from artifacts)
if: matrix.platform == 'iOS' && github.event_name != 'workflow_dispatch'
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-ios-staging
path: addon/${{ inputs.workdir }}/prebuilds
pattern: ${{ env.PREBUILD_ARTIFACT_PREFIX }}ios-*
merge-multiple: true

- name: Move iOS prebuilds from staging
if: matrix.platform == 'iOS' && !inputs.package
run: |
mkdir -p addon/${{ inputs.workdir }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-ios-staging/* addon/${{ inputs.workdir }}/prebuilds/ 2>/dev/null || true
shell: bash
continue-on-error: true

- name: Download prebuilds (from npm - workflow_dispatch)
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/integration-test-ocr-onnx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,9 @@ jobs:
if: ${{ !inputs.prebuild_package }}
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-staging
path: ${{ inputs.workdir || env.PKG_DIR }}/prebuilds
merge-multiple: true

- name: Move prebuilds from staging to workspace
if: ${{ !inputs.prebuild_package }}
run: |
mkdir -p ${{ inputs.workdir || env.PKG_DIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-staging/* ${{ inputs.workdir || env.PKG_DIR }}/prebuilds/ 2>/dev/null || true
echo "Prebuilds moved from staging area"
shell: bash

- name: Download prebuilds from package
if: ${{ inputs.prebuild_package }}
working-directory: ${{ inputs.workdir || env.PKG_DIR }}
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/integration-test-qvac-lib-infer-nmtcpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,9 @@ jobs:
if: ${{ !inputs.prebuild_package }}
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-staging
path: ${{ inputs.workdir || env.PKG_DIR }}/prebuilds
merge-multiple: true

- name: Move prebuilds from staging to workspace
if: ${{ !inputs.prebuild_package }}
shell: bash
run: |
mkdir -p ${{ inputs.workdir || env.PKG_DIR }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-staging/* ${{ inputs.workdir || env.PKG_DIR }}/prebuilds/ 2>/dev/null || true
echo "Prebuilds moved from staging area"

- name: Download prebuilds from package
if: ${{ inputs.prebuild_package }}
working-directory: ${{ inputs.workdir || env.PKG_DIR }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,9 @@ jobs:
if: ${{ !inputs.prebuild_package }}
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
with:
path: ${{ runner.temp }}/prebuilds-staging
path: ${{ inputs.workdir }}/prebuilds
merge-multiple: true

- name: Move prebuilds from staging to workspace
if: ${{ !inputs.prebuild_package }}
run: |
mkdir -p ${{ inputs.workdir }}/prebuilds
cp -r ${{ runner.temp }}/prebuilds-staging/* ${{ inputs.workdir }}/prebuilds/ 2>/dev/null || true
echo "Prebuilds moved from staging area"
shell: bash

- name: Download prebuilds from package
if: ${{ inputs.prebuild_package }}
working-directory: ${{ inputs.workdir }}
Expand Down
Loading
Loading