ci: install packages with ConorMacBride/install-package@v1
#81
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ConorMacBride/install-package@v1 | |
with: | |
apt: curl zip unzip tar bison pkg-config libdbus-1-dev libx11-dev libx11-xcb-dev libxft-dev libxext-dev libxtst-dev | |
- 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: "v2349-${{ 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" |