Skip to content

Commit

Permalink
Merge branch 'main' into port/tensorflow-lite
Browse files Browse the repository at this point in the history
  • Loading branch information
luncliff committed Sep 11, 2024
2 parents cc9bc6c + deee6f1 commit 4d47ba6
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: 2.1

orbs:
aws-cli: circleci/aws-cli@4.1.3 # https://circleci.com/developer/orbs/orb/circleci/aws-cli
aws-cli: circleci/aws-cli@5.1.0 # https://circleci.com/developer/orbs/orb/circleci/aws-cli
android: circleci/[email protected]

workflows:
Expand Down Expand Up @@ -58,6 +58,7 @@ jobs:
--clean-buildtrees-after-build \
--clean-packages-after-build \
--overlay-ports "$(pwd)/../ports" \
--overlay-triplets "$(pwd)/../triplets" \
$(cat "$(pwd)/../.circleci/port-linux.txt")
environment:
VCPKG_DEFAULT_TRIPLET: x64-linux
Expand Down Expand Up @@ -108,7 +109,7 @@ jobs:
--clean-buildtrees-after-build \
--clean-packages-after-build \
--overlay-ports "$(pwd)/../ports" \
--overlay-ports "$(pwd)/../triplets" \
--overlay-triplets "$(pwd)/../triplets" \
$(cat "$(pwd)/../test/azure-port-android.txt")
working_directory: vcpkg
environment:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ jobs:
VCPKG_DEFAULT_TRIPLET: "x64-osx"
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }}
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- uses: lukka/[email protected]
name: "Run vcpkg(arm64-osx)"
Expand All @@ -76,3 +78,5 @@ jobs:
VCPKG_DEFAULT_TRIPLET: "arm64-osx"
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }}
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
4 changes: 4 additions & 0 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:
VCPKG_DEFAULT_TRIPLET: "x64-linux"
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }}
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- uses: lukka/[email protected]
name: "Run vcpkg(arm64-linux)" # It's for future works. Not ready yet...
Expand All @@ -73,3 +75,5 @@ jobs:
VCPKG_DEFAULT_TRIPLET: "arm64-linux"
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }}
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
40 changes: 39 additions & 1 deletion .github/workflows/build-windows-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ jobs:
with:
msbuild-architecture: x64

- uses: ConorMacBride/[email protected]
with:
choco: awscli

- name: "Update environment variables"
run: |
Write-Output "PATH=$env:PATH;C:\Program Files\Amazon\AWSCLIV2" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: pwsh

- name: "Enalbe LongPath"
run: |
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
Expand All @@ -55,6 +64,8 @@ jobs:
env:
VCPKG_DEFAULT_TRIPLET: "x64-windows"
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- uses: lukka/[email protected]
name: "Run vcpkg(arm64-windows)"
Expand All @@ -68,6 +79,8 @@ jobs:
env:
VCPKG_DEFAULT_TRIPLET: "arm64-windows"
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- uses: yumis-coconudge/[email protected]
with:
Expand Down Expand Up @@ -95,6 +108,15 @@ jobs:
with:
msbuild-architecture: x64

- uses: ConorMacBride/[email protected]
with:
choco: awscli

- name: "Update environment variables"
run: |
Write-Output "PATH=$env:PATH;C:\Program Files\Amazon\AWSCLIV2" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: pwsh

- name: "Enalbe LongPath"
run: |
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
Expand All @@ -117,6 +139,8 @@ jobs:
env:
VCPKG_DEFAULT_TRIPLET: "x64-windows"
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- uses: yumis-coconudge/[email protected]
with:
Expand Down Expand Up @@ -144,10 +168,21 @@ jobs:
with:
msbuild-architecture: x64

- uses: humbletim/[email protected] # use NcStudios/[email protected] ?
- uses: ConorMacBride/[email protected]
with:
choco: awscli

- name: "Update environment variables"
run: |
Write-Output "PATH=$env:PATH;C:\Program Files\Amazon\AWSCLIV2" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: pwsh

- uses: humbletim/[email protected] # install Vulkan sdk if env.VULKAN_SDK is empty
if: env.VULKAN_SDK == ''
with:
version: "1.3.239.0"
cache: true
continue-on-error: true

- name: "Enalbe LongPath"
run: |
Expand All @@ -171,7 +206,10 @@ jobs:
env:
VCPKG_DEFAULT_TRIPLET: "x64-windows"
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- uses: yumis-coconudge/[email protected]
with:
additional-path: "C:/vcpkg/buildtrees,C:/vcpkg/packages"
if: always()
2 changes: 2 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,5 @@ jobs:
VCPKG_DEFAULT_TRIPLET: "x64-windows"
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }}
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ jobs:
- name: "Run make-configuration.ps1"
run: |
$text = scripts/make-configuration.ps1 -Dump
Write-Output "## Configuration" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
Write-Output "```json" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
Write-Output $text | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
Write-Output "```" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
shell: pwsh

- name: "Run gh(release)"
Expand Down

0 comments on commit 4d47ba6

Please sign in to comment.