Skip to content

fbshipit-source-id: c84e5e125fceca8d7e734677bcda00b65d493103 #1

fbshipit-source-id: c84e5e125fceca8d7e734677bcda00b65d493103

fbshipit-source-id: c84e5e125fceca8d7e734677bcda00b65d493103 #1

Workflow file for this run

# This file was @generated by getdeps.py

Check failure on line 1 in .github/workflows/getdeps_linux.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/getdeps_linux.yml

Invalid workflow file

(Line: 43, Col: 11): Unexpected symbol: '12_SOURCE'. Located at position 35 within expression: steps.paths.outputs.meta-python-3.12_SOURCE, (Line: 143, Col: 11): Unexpected symbol: '12_SOURCE'. Located at position 35 within expression: steps.paths.outputs.meta-python-3.12_SOURCE, (Line: 146, Col: 14): Unexpected symbol: '12_INSTALL'. Located at position 35 within expression: steps.paths.outputs.meta-python-3.12_INSTALL, (Line: 147, Col: 13): Unexpected symbol: '12_CACHE_KEY'. Located at position 35 within expression: steps.paths.outputs.meta-python-3.12_CACHE_KEY, (Line: 149, Col: 11): Unexpected symbol: '12_SOURCE'. Located at position 35 within expression: steps.paths.outputs.meta-python-3.12_SOURCE && ! steps.restore_meta-python-3.12.outputs.cache-hit, (Line: 153, Col: 11): Unexpected symbol: '12_SOURCE'. Located at position 35 within expression: steps.paths.outputs.meta-python-3.12_SOURCE && ! steps.restore_meta-python-3.12.outputs.cache-hit, (Line: 155, Col: 14): Unexpected symbol: '12_INSTALL'. Located at position 35 within expression: steps.paths.outputs.meta-python-3.12_INSTALL, (Line: 156, Col: 13): Unexpected symbol: '12_CACHE_KEY'. Located at position 35 within expression: steps.paths.outputs.meta-python-3.12_CACHE_KEY
name: linux
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- id: paths
name: Query paths
run: python3 build/fbcode_builder/getdeps.py query-paths --recursive --src-dir=. cinderx-3.12mp >> "$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 meta-python-3.12
if: ${{ steps.paths.outputs.meta-python-3.12_SOURCE }}
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests meta-python-3.12
- 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 meta-python-3.12 from cache
id: restore_meta-python-3.12
if: ${{ steps.paths.outputs.meta-python-3.12_SOURCE }}
uses: actions/cache/restore@v4
with:
path: ${{ steps.paths.outputs.meta-python-3.12_INSTALL }}
key: ${{ steps.paths.outputs.meta-python-3.12_CACHE_KEY }}-install
- name: Build meta-python-3.12
if: ${{ steps.paths.outputs.meta-python-3.12_SOURCE && ! steps.restore_meta-python-3.12.outputs.cache-hit }}
run: python3 build/fbcode_builder/getdeps.py build --no-tests meta-python-3.12
- name: Save meta-python-3.12 to cache
uses: actions/cache/save@v4
if: ${{ steps.paths.outputs.meta-python-3.12_SOURCE && ! steps.restore_meta-python-3.12.outputs.cache-hit }}
with:
path: ${{ steps.paths.outputs.meta-python-3.12_INSTALL }}
key: ${{ steps.paths.outputs.meta-python-3.12_CACHE_KEY }}-install
- name: Build cinderx-3.12mp
run: python3 build/fbcode_builder/getdeps.py build --src-dir=. cinderx-3.12mp --project-install-prefix cinderx-3.12mp:/usr/local
- name: Copy artifacts
run: python3 build/fbcode_builder/getdeps.py fixup-dyn-deps --strip --src-dir=. cinderx-3.12mp _artifacts/linux --project-install-prefix cinderx-3.12mp:/usr/local --final-install-prefix /usr/local
- uses: actions/upload-artifact@v4
with:
name: cinderx-3.12mp
path: _artifacts
- name: Test cinderx-3.12mp
run: python3 build/fbcode_builder/getdeps.py test --src-dir=. cinderx-3.12mp --project-install-prefix cinderx-3.12mp:/usr/local