Skip to content

Fix getdeps to exit non-zero when tests fail #27

Fix getdeps to exit non-zero when tests fail

Fix getdeps to exit non-zero when tests fail #27

# This file was @generated by getdeps.py
name: getdeps-3_14-Linux
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: paths
name: Query paths
run: python3 build/fbcode_builder/getdeps.py query-paths --recursive --src-dir=. cinderx-3_14 >> "$GITHUB_OUTPUT"
- name: Fetch ninja
if: ${{ steps.paths.outputs.ninja_SOURCE }}
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests ninja
- name: Fetch cmake
if: ${{ steps.paths.outputs.cmake_SOURCE }}
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests cmake
- name: Fetch python-setuptools
if: ${{ steps.paths.outputs.python-setuptools_SOURCE }}
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests python-setuptools
- name: Fetch autoconf
if: ${{ steps.paths.outputs.autoconf_SOURCE }}
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests autoconf
- name: Fetch automake
if: ${{ steps.paths.outputs.automake_SOURCE }}
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests automake
- name: Fetch libtool
if: ${{ steps.paths.outputs.libtool_SOURCE }}
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libtool
- name: Fetch python-3_14
if: ${{ steps.paths.outputs.python-3_14_SOURCE }}
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests python-3_14
- name: Restore ninja from cache
id: restore_ninja
if: ${{ steps.paths.outputs.ninja_SOURCE }}
uses: actions/cache/restore@v4
with:
path: ${{ steps.paths.outputs.ninja_INSTALL }}
key: ${{ steps.paths.outputs.ninja_CACHE_KEY }}-install
- name: Build ninja
if: ${{ steps.paths.outputs.ninja_SOURCE && ! steps.restore_ninja.outputs.cache-hit }}
run: python3 build/fbcode_builder/getdeps.py build --no-tests ninja
- name: Save ninja to cache
uses: actions/cache/save@v4
if: ${{ steps.paths.outputs.ninja_SOURCE && ! steps.restore_ninja.outputs.cache-hit }}
with:
path: ${{ steps.paths.outputs.ninja_INSTALL }}
key: ${{ steps.paths.outputs.ninja_CACHE_KEY }}-install
- name: Restore cmake from cache
id: restore_cmake
if: ${{ steps.paths.outputs.cmake_SOURCE }}
uses: actions/cache/restore@v4
with:
path: ${{ steps.paths.outputs.cmake_INSTALL }}
key: ${{ steps.paths.outputs.cmake_CACHE_KEY }}-install
- name: Build cmake
if: ${{ steps.paths.outputs.cmake_SOURCE && ! steps.restore_cmake.outputs.cache-hit }}
run: python3 build/fbcode_builder/getdeps.py build --no-tests cmake
- name: Save cmake to cache
uses: actions/cache/save@v4
if: ${{ steps.paths.outputs.cmake_SOURCE && ! steps.restore_cmake.outputs.cache-hit }}
with:
path: ${{ steps.paths.outputs.cmake_INSTALL }}
key: ${{ steps.paths.outputs.cmake_CACHE_KEY }}-install
- name: Restore python-setuptools from cache
id: restore_python-setuptools
if: ${{ steps.paths.outputs.python-setuptools_SOURCE }}
uses: actions/cache/restore@v4
with:
path: ${{ steps.paths.outputs.python-setuptools_INSTALL }}
key: ${{ steps.paths.outputs.python-setuptools_CACHE_KEY }}-install
- name: Build python-setuptools
if: ${{ steps.paths.outputs.python-setuptools_SOURCE && ! steps.restore_python-setuptools.outputs.cache-hit }}
run: python3 build/fbcode_builder/getdeps.py build --no-tests python-setuptools
- name: Save python-setuptools to cache
uses: actions/cache/save@v4
if: ${{ steps.paths.outputs.python-setuptools_SOURCE && ! steps.restore_python-setuptools.outputs.cache-hit }}
with:
path: ${{ steps.paths.outputs.python-setuptools_INSTALL }}
key: ${{ steps.paths.outputs.python-setuptools_CACHE_KEY }}-install
- name: Restore autoconf from cache
id: restore_autoconf
if: ${{ steps.paths.outputs.autoconf_SOURCE }}
uses: actions/cache/restore@v4
with:
path: ${{ steps.paths.outputs.autoconf_INSTALL }}
key: ${{ steps.paths.outputs.autoconf_CACHE_KEY }}-install
- name: Build autoconf
if: ${{ steps.paths.outputs.autoconf_SOURCE && ! steps.restore_autoconf.outputs.cache-hit }}
run: python3 build/fbcode_builder/getdeps.py build --no-tests autoconf
- name: Save autoconf to cache
uses: actions/cache/save@v4
if: ${{ steps.paths.outputs.autoconf_SOURCE && ! steps.restore_autoconf.outputs.cache-hit }}
with:
path: ${{ steps.paths.outputs.autoconf_INSTALL }}
key: ${{ steps.paths.outputs.autoconf_CACHE_KEY }}-install
- name: Restore automake from cache
id: restore_automake
if: ${{ steps.paths.outputs.automake_SOURCE }}
uses: actions/cache/restore@v4
with:
path: ${{ steps.paths.outputs.automake_INSTALL }}
key: ${{ steps.paths.outputs.automake_CACHE_KEY }}-install
- name: Build automake
if: ${{ steps.paths.outputs.automake_SOURCE && ! steps.restore_automake.outputs.cache-hit }}
run: python3 build/fbcode_builder/getdeps.py build --no-tests automake
- name: Save automake to cache
uses: actions/cache/save@v4
if: ${{ steps.paths.outputs.automake_SOURCE && ! steps.restore_automake.outputs.cache-hit }}
with:
path: ${{ steps.paths.outputs.automake_INSTALL }}
key: ${{ steps.paths.outputs.automake_CACHE_KEY }}-install
- name: Restore libtool from cache
id: restore_libtool
if: ${{ steps.paths.outputs.libtool_SOURCE }}
uses: actions/cache/restore@v4
with:
path: ${{ steps.paths.outputs.libtool_INSTALL }}
key: ${{ steps.paths.outputs.libtool_CACHE_KEY }}-install
- name: Build libtool
if: ${{ steps.paths.outputs.libtool_SOURCE && ! steps.restore_libtool.outputs.cache-hit }}
run: python3 build/fbcode_builder/getdeps.py build --no-tests libtool
- name: Save libtool to cache
uses: actions/cache/save@v4
if: ${{ steps.paths.outputs.libtool_SOURCE && ! steps.restore_libtool.outputs.cache-hit }}
with:
path: ${{ steps.paths.outputs.libtool_INSTALL }}
key: ${{ steps.paths.outputs.libtool_CACHE_KEY }}-install
- name: Restore python-3_14 from cache
id: restore_python-3_14
if: ${{ steps.paths.outputs.python-3_14_SOURCE }}
uses: actions/cache/restore@v4
with:
path: ${{ steps.paths.outputs.python-3_14_INSTALL }}
key: ${{ steps.paths.outputs.python-3_14_CACHE_KEY }}-install
- name: Build python-3_14
if: ${{ steps.paths.outputs.python-3_14_SOURCE && ! steps.restore_python-3_14.outputs.cache-hit }}
run: python3 build/fbcode_builder/getdeps.py build --no-tests python-3_14
- name: Save python-3_14 to cache
uses: actions/cache/save@v4
if: ${{ steps.paths.outputs.python-3_14_SOURCE && ! steps.restore_python-3_14.outputs.cache-hit }}
with:
path: ${{ steps.paths.outputs.python-3_14_INSTALL }}
key: ${{ steps.paths.outputs.python-3_14_CACHE_KEY }}-install
- name: Build cinderx-3_14
run: python3 build/fbcode_builder/getdeps.py build --src-dir=. cinderx-3_14 --project-install-prefix cinderx-3_14:/usr/local
- name: Copy artifacts
run: python3 build/fbcode_builder/getdeps.py fixup-dyn-deps --strip --src-dir=. cinderx-3_14 _artifacts/linux --project-install-prefix cinderx-3_14:/usr/local --final-install-prefix /usr/local
- uses: actions/upload-artifact@v4
with:
name: cinderx-3_14
path: _artifacts
- name: Test cinderx-3_14
run: python3 build/fbcode_builder/getdeps.py test --src-dir=. cinderx-3_14 --project-install-prefix cinderx-3_14:/usr/local