Skip to content

Commit 2a9fb60

Browse files
committed
Remove dependency on actions/checkout
Hopefully fix node20 issue on linux build.
1 parent cb74bd6 commit 2a9fb60

File tree

1 file changed

+28
-21
lines changed

1 file changed

+28
-21
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,16 @@ jobs:
9090
- 3306:3306
9191

9292
steps:
93-
- uses: actions/checkout@v3
94-
with:
95-
submodules: recursive
96-
9793
#
9894
# setup
9995
#
96+
- name: "setup: checkout ${{ github.repository }}"
97+
uses: actions/checkout@latest
98+
with:
99+
submodules: recursive
100100

101101
- name: "setup: cmake & ninja"
102-
uses: lukka/get-cmake@v3.25.2 # workaround for node 20 issue
102+
uses: lukka/get-cmake@latest
103103
with:
104104
cmakeVersion: "${{ env.CMAKE_VERSION }}"
105105

@@ -317,13 +317,21 @@ jobs:
317317
PATH: "/opt/python/cp311-cp311/bin:/opt/rh/devtoolset-10/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/github/home/.cargo/bin:/opt/mssql-tools/bin"
318318

319319
steps:
320-
- uses: actions/checkout@v3
321-
with:
322-
submodules: recursive
323-
324320
#
325321
# setup
326322
#
323+
324+
# actions/checkout uses Node. Node uses GLIBC. GLIBC is very old on manylinux and Node doesn't like it. Avoid using actions/checkout.
325+
- name: "setup: checkout ${{ github.repository }}"
326+
run: |
327+
git config --global --add safe.directory $(pwd)
328+
git init
329+
git remote add origin https://github.com/${{ github.repository }}.git
330+
git fetch --depth 1 origin ${GITHUB_SHA}
331+
git checkout FETCH_HEAD
332+
git submodule update --init --recursive
333+
334+
# lukka/get-cmake uses Node... avoid using it.
327335
- name: "setup: cmake & ninja"
328336
uses: lukka/get-cmake@v3.25.2 # workaround for node 20 issue
329337
with:
@@ -604,7 +612,8 @@ jobs:
604612
command -v kart
605613
kart --version
606614
607-
- uses: actions/checkout@v3
615+
- name: "Checkout ${{ github.repository }}"
616+
uses: actions/checkout@latest
608617

609618
- name: e2e test (no helper)
610619
env:
@@ -643,10 +652,6 @@ jobs:
643652
PY_VER_ID: "cp311-cp311"
644653

645654
steps:
646-
- uses: actions/checkout@v3
647-
with:
648-
submodules: recursive
649-
650655
#
651656
# setup
652657
#
@@ -780,13 +785,13 @@ jobs:
780785
PY_VER_INSTALLER: "https://www.python.org/ftp/python/3.11.6/python-3.11.6-macos11.pkg"
781786

782787
steps:
783-
- uses: actions/checkout@v3
784-
with:
785-
submodules: recursive
786-
787788
#
788789
# setup
789790
#
791+
- name: "setup: checkout ${{ github.repository }}"
792+
uses: actions/checkout@latest
793+
with:
794+
submodules: recursive
790795

791796
- uses: maxim-lobanov/setup-xcode@v1
792797
with:
@@ -1038,12 +1043,14 @@ jobs:
10381043
)
10391044
10401045
steps:
1041-
- uses: actions/checkout@v3
1046+
#
1047+
# setup
1048+
#
1049+
- name: "setup: checkout ${{ github.repository }}"
1050+
uses: actions/checkout@latest
10421051
with:
10431052
submodules: recursive
10441053

1045-
# Setup
1046-
10471054
- name: "msvc setup"
10481055
uses: ilammy/msvc-dev-cmd@v1
10491056

0 commit comments

Comments
 (0)