Skip to content

Commit d83051f

Browse files
jbower-fbmeta-codesync[bot]
authored andcommitted
Add 3.14 OSS build with getdeps
Summary: This should help get signal on our diffs if we break the getdeps and non-getdeps OSS builds. Reviewed By: alexmalyshev, yoney Differential Revision: D87088806 fbshipit-source-id: de70988b52b1311db261535992840c1e486b610e
1 parent 08dbe11 commit d83051f

11 files changed

Lines changed: 212 additions & 8 deletions
Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
# This file was @generated by getdeps.py
2+
3+
name: getdeps-3_14-Linux
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches:
11+
- main
12+
13+
permissions:
14+
contents: read # to fetch code (actions/checkout)
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- id: paths
22+
name: Query paths
23+
run: python3 build/fbcode_builder/getdeps.py query-paths --recursive --src-dir=. cinderx-3_14 >> "$GITHUB_OUTPUT"
24+
- name: Fetch ninja
25+
if: ${{ steps.paths.outputs.ninja_SOURCE }}
26+
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests ninja
27+
- name: Fetch cmake
28+
if: ${{ steps.paths.outputs.cmake_SOURCE }}
29+
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests cmake
30+
- name: Fetch python-setuptools
31+
if: ${{ steps.paths.outputs.python-setuptools_SOURCE }}
32+
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests python-setuptools
33+
- name: Fetch autoconf
34+
if: ${{ steps.paths.outputs.autoconf_SOURCE }}
35+
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests autoconf
36+
- name: Fetch automake
37+
if: ${{ steps.paths.outputs.automake_SOURCE }}
38+
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests automake
39+
- name: Fetch libtool
40+
if: ${{ steps.paths.outputs.libtool_SOURCE }}
41+
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libtool
42+
- name: Fetch python-3_14
43+
if: ${{ steps.paths.outputs.python-3_14_SOURCE }}
44+
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests python-3_14
45+
- name: Restore ninja from cache
46+
id: restore_ninja
47+
if: ${{ steps.paths.outputs.ninja_SOURCE }}
48+
uses: actions/cache/restore@v4
49+
with:
50+
path: ${{ steps.paths.outputs.ninja_INSTALL }}
51+
key: ${{ steps.paths.outputs.ninja_CACHE_KEY }}-install
52+
- name: Build ninja
53+
if: ${{ steps.paths.outputs.ninja_SOURCE && ! steps.restore_ninja.outputs.cache-hit }}
54+
run: python3 build/fbcode_builder/getdeps.py build --no-tests ninja
55+
- name: Save ninja to cache
56+
uses: actions/cache/save@v4
57+
if: ${{ steps.paths.outputs.ninja_SOURCE && ! steps.restore_ninja.outputs.cache-hit }}
58+
with:
59+
path: ${{ steps.paths.outputs.ninja_INSTALL }}
60+
key: ${{ steps.paths.outputs.ninja_CACHE_KEY }}-install
61+
- name: Restore cmake from cache
62+
id: restore_cmake
63+
if: ${{ steps.paths.outputs.cmake_SOURCE }}
64+
uses: actions/cache/restore@v4
65+
with:
66+
path: ${{ steps.paths.outputs.cmake_INSTALL }}
67+
key: ${{ steps.paths.outputs.cmake_CACHE_KEY }}-install
68+
- name: Build cmake
69+
if: ${{ steps.paths.outputs.cmake_SOURCE && ! steps.restore_cmake.outputs.cache-hit }}
70+
run: python3 build/fbcode_builder/getdeps.py build --no-tests cmake
71+
- name: Save cmake to cache
72+
uses: actions/cache/save@v4
73+
if: ${{ steps.paths.outputs.cmake_SOURCE && ! steps.restore_cmake.outputs.cache-hit }}
74+
with:
75+
path: ${{ steps.paths.outputs.cmake_INSTALL }}
76+
key: ${{ steps.paths.outputs.cmake_CACHE_KEY }}-install
77+
- name: Restore python-setuptools from cache
78+
id: restore_python-setuptools
79+
if: ${{ steps.paths.outputs.python-setuptools_SOURCE }}
80+
uses: actions/cache/restore@v4
81+
with:
82+
path: ${{ steps.paths.outputs.python-setuptools_INSTALL }}
83+
key: ${{ steps.paths.outputs.python-setuptools_CACHE_KEY }}-install
84+
- name: Build python-setuptools
85+
if: ${{ steps.paths.outputs.python-setuptools_SOURCE && ! steps.restore_python-setuptools.outputs.cache-hit }}
86+
run: python3 build/fbcode_builder/getdeps.py build --no-tests python-setuptools
87+
- name: Save python-setuptools to cache
88+
uses: actions/cache/save@v4
89+
if: ${{ steps.paths.outputs.python-setuptools_SOURCE && ! steps.restore_python-setuptools.outputs.cache-hit }}
90+
with:
91+
path: ${{ steps.paths.outputs.python-setuptools_INSTALL }}
92+
key: ${{ steps.paths.outputs.python-setuptools_CACHE_KEY }}-install
93+
- name: Restore autoconf from cache
94+
id: restore_autoconf
95+
if: ${{ steps.paths.outputs.autoconf_SOURCE }}
96+
uses: actions/cache/restore@v4
97+
with:
98+
path: ${{ steps.paths.outputs.autoconf_INSTALL }}
99+
key: ${{ steps.paths.outputs.autoconf_CACHE_KEY }}-install
100+
- name: Build autoconf
101+
if: ${{ steps.paths.outputs.autoconf_SOURCE && ! steps.restore_autoconf.outputs.cache-hit }}
102+
run: python3 build/fbcode_builder/getdeps.py build --no-tests autoconf
103+
- name: Save autoconf to cache
104+
uses: actions/cache/save@v4
105+
if: ${{ steps.paths.outputs.autoconf_SOURCE && ! steps.restore_autoconf.outputs.cache-hit }}
106+
with:
107+
path: ${{ steps.paths.outputs.autoconf_INSTALL }}
108+
key: ${{ steps.paths.outputs.autoconf_CACHE_KEY }}-install
109+
- name: Restore automake from cache
110+
id: restore_automake
111+
if: ${{ steps.paths.outputs.automake_SOURCE }}
112+
uses: actions/cache/restore@v4
113+
with:
114+
path: ${{ steps.paths.outputs.automake_INSTALL }}
115+
key: ${{ steps.paths.outputs.automake_CACHE_KEY }}-install
116+
- name: Build automake
117+
if: ${{ steps.paths.outputs.automake_SOURCE && ! steps.restore_automake.outputs.cache-hit }}
118+
run: python3 build/fbcode_builder/getdeps.py build --no-tests automake
119+
- name: Save automake to cache
120+
uses: actions/cache/save@v4
121+
if: ${{ steps.paths.outputs.automake_SOURCE && ! steps.restore_automake.outputs.cache-hit }}
122+
with:
123+
path: ${{ steps.paths.outputs.automake_INSTALL }}
124+
key: ${{ steps.paths.outputs.automake_CACHE_KEY }}-install
125+
- name: Restore libtool from cache
126+
id: restore_libtool
127+
if: ${{ steps.paths.outputs.libtool_SOURCE }}
128+
uses: actions/cache/restore@v4
129+
with:
130+
path: ${{ steps.paths.outputs.libtool_INSTALL }}
131+
key: ${{ steps.paths.outputs.libtool_CACHE_KEY }}-install
132+
- name: Build libtool
133+
if: ${{ steps.paths.outputs.libtool_SOURCE && ! steps.restore_libtool.outputs.cache-hit }}
134+
run: python3 build/fbcode_builder/getdeps.py build --no-tests libtool
135+
- name: Save libtool to cache
136+
uses: actions/cache/save@v4
137+
if: ${{ steps.paths.outputs.libtool_SOURCE && ! steps.restore_libtool.outputs.cache-hit }}
138+
with:
139+
path: ${{ steps.paths.outputs.libtool_INSTALL }}
140+
key: ${{ steps.paths.outputs.libtool_CACHE_KEY }}-install
141+
- name: Restore python-3_14 from cache
142+
id: restore_python-3_14
143+
if: ${{ steps.paths.outputs.python-3_14_SOURCE }}
144+
uses: actions/cache/restore@v4
145+
with:
146+
path: ${{ steps.paths.outputs.python-3_14_INSTALL }}
147+
key: ${{ steps.paths.outputs.python-3_14_CACHE_KEY }}-install
148+
- name: Build python-3_14
149+
if: ${{ steps.paths.outputs.python-3_14_SOURCE && ! steps.restore_python-3_14.outputs.cache-hit }}
150+
run: python3 build/fbcode_builder/getdeps.py build --no-tests python-3_14
151+
- name: Save python-3_14 to cache
152+
uses: actions/cache/save@v4
153+
if: ${{ steps.paths.outputs.python-3_14_SOURCE && ! steps.restore_python-3_14.outputs.cache-hit }}
154+
with:
155+
path: ${{ steps.paths.outputs.python-3_14_INSTALL }}
156+
key: ${{ steps.paths.outputs.python-3_14_CACHE_KEY }}-install
157+
- name: Build cinderx-3_14
158+
run: python3 build/fbcode_builder/getdeps.py build --src-dir=. cinderx-3_14 --project-install-prefix cinderx-3_14:/usr/local
159+
- name: Copy artifacts
160+
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
161+
- uses: actions/upload-artifact@v4
162+
with:
163+
name: cinderx-3_14
164+
path: _artifacts
165+
- name: Test cinderx-3_14
166+
run: python3 build/fbcode_builder/getdeps.py test --src-dir=. cinderx-3_14 --project-install-prefix cinderx-3_14:/usr/local
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[manifest]
2+
name = cinderx-3_14
3+
fbsource_path = fbcode/cinderx
4+
shipit_project = facebookincubator/cinderx
5+
6+
[git]
7+
repo_url = https://github.com/facebookincubator/cinderx.git
8+
9+
[build.os=linux]
10+
builder = setup-py
11+
12+
[build.not(os=linux)]
13+
builder = nop
14+
15+
[dependencies]
16+
python-setuptools
17+
python-3_14
18+
19+
[shipit.pathmap]
20+
fbcode/cinderx = cinderx
21+
fbcode/cinderx/oss_toplevel = .
22+
23+
[setup-py.test]
24+
python_script = cinderx/PythonLib/test_cinderx/test_oss_quick.py
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This is primarily to support CinderX's CI, so it's not heavily configured.
2+
3+
[manifest]
4+
name = python-3_14
5+
6+
[git]
7+
repo_url = https://github.com/python/cpython.git
8+
branch = 3.14
9+
10+
[build]
11+
builder = autoconf

cinderx/Interpreter/3.14/ceval.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Auto-generated by UpstreamBorrow.py.
1+
// @generated by UpstreamBorrow.py.
22
// See the Buck target fbcode//cinderx/UpstreamBorrow:gen_borrowed.c.
33

44

cinderx/Jit/generators_borrowed_3.10.gen_cached.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Auto-generated by UpstreamBorrow.py.
1+
// @generated by UpstreamBorrow.py.
22
// See the Buck target fbcode//cinderx/UpstreamBorrow:gen_borrowed.c.
33

44
// -*- mode: c++ -*- vi: set ft=cpp:

cinderx/Jit/generators_borrowed_3.12.gen_cached.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Auto-generated by UpstreamBorrow.py.
1+
// @generated by UpstreamBorrow.py.
22
// See the Buck target fbcode//cinderx/UpstreamBorrow:gen_borrowed.c.
33

44
// -*- mode: c++ -*- vi: set ft=cpp:

cinderx/Jit/generators_borrowed_3.14.gen_cached.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Auto-generated by UpstreamBorrow.py.
1+
// @generated by UpstreamBorrow.py.
22
// See the Buck target fbcode//cinderx/UpstreamBorrow:gen_borrowed.c.
33

44
// -*- mode: c++ -*- vi: set ft=cpp:

cinderx/UpstreamBorrow/UpstreamBorrow.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@
2828
r"#\s*(define|undef|if|elif|else|endif|include)"
2929
)
3030

31-
HEADER = """// Auto-generated by UpstreamBorrow.py.
31+
HEADER: str = (
32+
"// @"
33+
+ """generated by UpstreamBorrow.py.
3234
// See the Buck target fbcode//cinderx/UpstreamBorrow:gen_borrowed.c.
3335
3436
"""
37+
)
3538

3639

3740
def extract_preprocessor_directives(

cinderx/UpstreamBorrow/borrowed-3.10.gen_cached.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Auto-generated by UpstreamBorrow.py.
1+
// @generated by UpstreamBorrow.py.
22
// See the Buck target fbcode//cinderx/UpstreamBorrow:gen_borrowed.c.
33

44
// -*- mode: c++ -*- vi: set ft=cpp:

cinderx/UpstreamBorrow/borrowed-3.12.gen_cached.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Auto-generated by UpstreamBorrow.py.
1+
// @generated by UpstreamBorrow.py.
22
// See the Buck target fbcode//cinderx/UpstreamBorrow:gen_borrowed.c.
33

44
// -*- mode: c++ -*- vi: set ft=cpp:

0 commit comments

Comments
 (0)