Skip to content

ci gh-actions: test libtorch #76

ci gh-actions: test libtorch

ci gh-actions: test libtorch #76

Workflow file for this run

name: "Ubuntu"
on: [push, workflow_dispatch]
env:
VCPKG_FEATURE_FLAGS: "registries,binarycaching,manifests,versions"
jobs:
ubuntu22:
# check https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md
runs-on: "ubuntu-22.04"
strategy:
fail-fast: false
matrix:
triplet: [x64-linux]
env:
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports"
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: |
mkdir -p ${VCPKG_DOWNLOADS}
mkdir -p ${VCPKG_DEFAULT_BINARY_CACHE}
env:
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads"
VCPKG_DEFAULT_BINARY_CACHE: "${{ runner.temp }}/vcpkg-archives"
- uses: actions/cache@v3
with:
key: "v2339-${{ runner.os }}-${{ matrix.triplet }}"
path: |
${{ runner.temp }}/vcpkg-downloads
${{ runner.temp }}/vcpkg-archives
- uses: ConorMacBride/install-package@v1
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
vcpkgGitCommitId: "a42af01b72c28a8e1d7b48107b33e4f286a55ef6" # 2023.11.20
vcpkgJsonGlob: "test/vcpkg.json"
runVcpkgInstall: true
runVcpkgFormatString: '[`install`, `--clean-buildtrees-after-build`, `--clean-packages-after-build`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`]'
env:
VCPKG_DEFAULT_TRIPLET: "${{ matrix.triplet }}"
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads"
VCPKG_DEFAULT_BINARY_CACHE: "${{ runner.temp }}/vcpkg-archives"