Skip to content

Commit 38eb241

Browse files
authored
adding pthread for tc
1 parent 3f1a0a1 commit 38eb241

3 files changed

Lines changed: 211 additions & 17 deletions

File tree

.github/buildTemplate.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -230,23 +230,23 @@ todo:
230230
# suffix: oracle7-aarch64
231231
# arch : arm64
232232

233-
# - name : buildOracle8JE
234-
# prefix: libjemalloc
235-
# suffix: oracle8-x64
236-
# arch : amd64
237-
# - name : buildOracle8JE
238-
# prefix: libjemalloc
239-
# suffix: oracle8-aarch64
240-
# arch : arm64
233+
- name : buildOracle8JE
234+
prefix: libjemalloc
235+
suffix: oracle8-x64
236+
arch : amd64
237+
- name : buildOracle8JE
238+
prefix: libjemalloc
239+
suffix: oracle8-aarch64
240+
arch : arm64
241241

242-
# - name : buildOracle8TC
243-
# prefix: libtcmalloc
244-
# suffix: oracle8-x64
245-
# arch : amd64
246-
# - name : buildOracle8TC
247-
# prefix: libtcmalloc
248-
# suffix: oracle8-aarch64
249-
# arch : arm64
242+
- name : buildOracle8TC
243+
prefix: libtcmalloc
244+
suffix: oracle8-x64
245+
arch : amd64
246+
- name : buildOracle8TC
247+
prefix: libtcmalloc
248+
suffix: oracle8-aarch64
249+
arch : arm64
250250

251251
# - name : buildOracle9JE
252252
# prefix: libjemalloc

.github/workflows/build.yaml

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,196 @@ jobs:
893893
name: libjemalloc-${{ env.version }}-oracle7-aarch64
894894
path: buildOracle7JE
895895

896+
# ============
897+
buildOracle8JEamd64:
898+
runs-on: ubuntu-latest
899+
permissions:
900+
contents : write
901+
pull-requests: write
902+
903+
steps :
904+
- name: Cache OpenAF runtime
905+
uses: actions/cache@v3
906+
with:
907+
key : oaf-t8
908+
path: /tmp/oaf
909+
910+
# --------------
911+
- name: Checkout
912+
uses: actions/checkout@v3
913+
914+
915+
# -----------
916+
- name: Build
917+
uses: openaf/ojob-action@v4
918+
env :
919+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
920+
with:
921+
ojob: build.yaml
922+
args: 'op=buildOracle8JE arch=amd64'
923+
dist: t8
924+
925+
# -----------------------
926+
- name: Clean and version
927+
uses: openaf/ojob-action@v4
928+
env :
929+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
930+
with:
931+
ojob: cleanAndVersion.yaml
932+
args: 'path=buildOracle8JE'
933+
dist: t8
934+
935+
# -------------------
936+
- name: Upload output
937+
uses: actions/upload-artifact@v3
938+
with:
939+
name: libjemalloc-${{ env.version }}-oracle8-x64
940+
path: buildOracle8JE
941+
942+
# ============
943+
buildOracle8JEarm64:
944+
runs-on: self-hosted
945+
permissions:
946+
contents : write
947+
pull-requests: write
948+
949+
steps :
950+
- name: Cache OpenAF runtime
951+
uses: actions/cache@v3
952+
with:
953+
key : oaf-t8
954+
path: /tmp/oaf
955+
956+
# --------------
957+
- name: Checkout
958+
uses: actions/checkout@v3
959+
960+
# -----------------
961+
- name: Set up QEMU
962+
uses: docker/setup-qemu-action@v2
963+
964+
# -----------
965+
- name: Build
966+
uses: openaf/ojob-action@v4
967+
env :
968+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
969+
with:
970+
ojob: build.yaml
971+
args: 'op=buildOracle8JE arch=arm64'
972+
dist: t8
973+
974+
# -----------------------
975+
- name: Clean and version
976+
uses: openaf/ojob-action@v4
977+
env :
978+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
979+
with:
980+
ojob: cleanAndVersion.yaml
981+
args: 'path=buildOracle8JE'
982+
dist: t8
983+
984+
# -------------------
985+
- name: Upload output
986+
uses: actions/upload-artifact@v3
987+
with:
988+
name: libjemalloc-${{ env.version }}-oracle8-aarch64
989+
path: buildOracle8JE
990+
991+
# ============
992+
buildOracle8TCamd64:
993+
runs-on: ubuntu-latest
994+
permissions:
995+
contents : write
996+
pull-requests: write
997+
998+
steps :
999+
- name: Cache OpenAF runtime
1000+
uses: actions/cache@v3
1001+
with:
1002+
key : oaf-t8
1003+
path: /tmp/oaf
1004+
1005+
# --------------
1006+
- name: Checkout
1007+
uses: actions/checkout@v3
1008+
1009+
1010+
# -----------
1011+
- name: Build
1012+
uses: openaf/ojob-action@v4
1013+
env :
1014+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1015+
with:
1016+
ojob: build.yaml
1017+
args: 'op=buildOracle8TC arch=amd64'
1018+
dist: t8
1019+
1020+
# -----------------------
1021+
- name: Clean and version
1022+
uses: openaf/ojob-action@v4
1023+
env :
1024+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1025+
with:
1026+
ojob: cleanAndVersion.yaml
1027+
args: 'path=buildOracle8TC'
1028+
dist: t8
1029+
1030+
# -------------------
1031+
- name: Upload output
1032+
uses: actions/upload-artifact@v3
1033+
with:
1034+
name: libtcmalloc-${{ env.version }}-oracle8-x64
1035+
path: buildOracle8TC
1036+
1037+
# ============
1038+
buildOracle8TCarm64:
1039+
runs-on: self-hosted
1040+
permissions:
1041+
contents : write
1042+
pull-requests: write
1043+
1044+
steps :
1045+
- name: Cache OpenAF runtime
1046+
uses: actions/cache@v3
1047+
with:
1048+
key : oaf-t8
1049+
path: /tmp/oaf
1050+
1051+
# --------------
1052+
- name: Checkout
1053+
uses: actions/checkout@v3
1054+
1055+
# -----------------
1056+
- name: Set up QEMU
1057+
uses: docker/setup-qemu-action@v2
1058+
1059+
# -----------
1060+
- name: Build
1061+
uses: openaf/ojob-action@v4
1062+
env :
1063+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1064+
with:
1065+
ojob: build.yaml
1066+
args: 'op=buildOracle8TC arch=arm64'
1067+
dist: t8
1068+
1069+
# -----------------------
1070+
- name: Clean and version
1071+
uses: openaf/ojob-action@v4
1072+
env :
1073+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1074+
with:
1075+
ojob: cleanAndVersion.yaml
1076+
args: 'path=buildOracle8TC'
1077+
dist: t8
1078+
1079+
# -------------------
1080+
- name: Upload output
1081+
uses: actions/upload-artifact@v3
1082+
with:
1083+
name: libtcmalloc-${{ env.version }}-oracle8-aarch64
1084+
path: buildOracle8TC
1085+
8961086

8971087
release:
8981088
# ====================
@@ -915,6 +1105,10 @@ jobs:
9151105
- buildAlpineTCarm64
9161106
- buildOracle7JEamd64
9171107
- buildOracle7JEarm64
1108+
- buildOracle8JEamd64
1109+
- buildOracle8JEarm64
1110+
- buildOracle8TCamd64
1111+
- buildOracle8TCarm64
9181112
runs-on: ubuntu-latest
9191113
permissions:
9201114
contents : write

build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ init:
3636

3737
oracle8:
3838
imageTC: oraclelinux:8.8
39-
buildTC: yum -y -q update && yum install -y -q autoconf automake libtool gcc gcc-c++ git make && git clone https://github.com/gperftools/gperftools && cd gperftools && sh autogen.sh && sh configure && make
39+
buildTC: yum -y -q update && yum install -y -q autoconf automake libtool gcc gcc-c++ git make && git clone https://github.com/gperftools/gperftools && cd gperftools && sh autogen.sh && LDFLAGS="-lpthread" sh configure && make
4040
copyTC : mkdir /output/{{#if output}}{{output}}{{else}}{{name}}{{/if}} && cp -a .libs/libtcmalloc*.so* /output/{{#if output}}{{output}}{{else}}{{name}}{{/if}} && chmod a+rw /output/{{#if output}}{{output}}{{else}}{{name}}{{/if}}
4141

4242
imageJE: oraclelinux:8.8

0 commit comments

Comments
 (0)