Skip to content

Commit

Permalink
ci gh-actions: test libtorch
Browse files Browse the repository at this point in the history
* run `setup-python`
* increase timeout-minutes to 180
  • Loading branch information
luncliff committed Dec 14, 2023
1 parent 67a73e1 commit 620693d
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 6 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ jobs:
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports"
VCPKG_OVERLAY_TRIPLETS: ${{ github.workspace }}/triplets
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: '3.11'
cache: 'pip'
- name: "Run pip install"
run: pip install typing-extensions pyyaml numpy sympy

- name: "create cache folders"
run: |
mkdir -p ${VCPKG_DOWNLOADS}
Expand All @@ -33,6 +40,7 @@ jobs:
with:
brew: ninja autoconf automake libtool
- uses: lukka/run-vcpkg@v11
timeout-minutes: 180
with:
vcpkgDirectory: "/usr/local/share/vcpkg" # see VCPKG_INSTALLATION_ROOT
vcpkgGitCommitId: "a42af01b72c28a8e1d7b48107b33e4f286a55ef6" # 2023.11.20
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ jobs:
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports"
VCPKG_OVERLAY_TRIPLETS: ${{ github.workspace }}/triplets
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: '3.11'
cache: 'pip'
- name: "Run pip install"
run: pip install typing-extensions pyyaml numpy sympy

- name: "create cache folders"
run: |
mkdir -p ${VCPKG_DOWNLOADS}
Expand All @@ -35,6 +42,7 @@ jobs:
with:
apt: nuget nasm libnuma-dev libopenmpi-dev libx11-dev libxi-dev libxext-dev libx11-xcb-dev
- uses: lukka/run-vcpkg@v11
timeout-minutes: 180
with:
vcpkgDirectory: "/usr/local/share/vcpkg" # see VCPKG_INSTALLATION_ROOT
doNotUpdateVcpkg: true
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets"
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: '3.11'
cache: 'pip'
- name: "Run pip install"
run: pip install typing-extensions pyyaml numpy sympy

- name: "create cache folders"
run: |
New-Item -Type Directory -Force ${env:VCPKG_DOWNLOADS}
Expand All @@ -32,6 +39,7 @@ jobs:
with:
msbuild-architecture: x64
- uses: lukka/[email protected]
timeout-minutes: 180
with:
vcpkgDirectory: "C:/vcpkg"
vcpkgGitCommitId: "a42af01b72c28a8e1d7b48107b33e4f286a55ef6" # 2023.11.20
Expand Down
3 changes: 2 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ stages:
vcpkgArguments: "tensorflow-lite[google-angle,gpu]"
vcpkgGitCommitId: $(vcpkg.commit)
condition: ne(variables['vcpkg.default.triplet'], 'x64-uwp')
- displayName: "libtorch"
- task: run-vcpkg@0
displayName: "libtorch"
inputs:
vcpkgArguments: "libtorch[opencv,leveldb,zstd]"
vcpkgGitCommitId: $(vcpkg.commit)
Expand Down
15 changes: 12 additions & 3 deletions test/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "test",
"version-date": "2023-09-27",
"version-date": "2023-12-15",
"description": "vcpkg registry maintained by @luncliff",
"homepage": "https://github.com/luncliff/vcpkg-registry",
"supports": "windows | osx | ios",
"supports": "windows | osx | linux | ios",
"dependencies": [
{
"name": "apple-crypto",
Expand All @@ -14,6 +14,15 @@
"platform": "osx | ios"
},
"etcpak",
{
"name": "libtorch",
"features": [
"leveldb",
"xnnpack",
"opencv"
],
"platform": "windows | osx | linux"
},
{
"name": "llama-cpp",
"features": [
Expand All @@ -35,4 +44,4 @@
"xatlas",
"zlib-ng"
]
}
}

0 comments on commit 620693d

Please sign in to comment.