Skip to content

Commit c0d1e6d

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

File tree

1 file changed

+54
-16
lines changed

1 file changed

+54
-16
lines changed

.github/workflows/build.yml

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

9292
steps:
93-
- uses: actions/checkout@v3
94-
with:
95-
submodules: recursive
93+
- name: "Checkout ${{ github.repository }}"
94+
run: |
95+
mkdir kart
96+
cd kart
97+
git init
98+
git remote add origin https://github.com/${{ github.repository }}.git
99+
git fetch --depth 1 origin $GITHUB_SHA
100+
git checkout FETCH_HEAD
101+
git submodule update --init --recursive
96102
97103
#
98104
# setup
@@ -317,9 +323,15 @@ jobs:
317323
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"
318324

319325
steps:
320-
- uses: actions/checkout@v3
321-
with:
322-
submodules: recursive
326+
- name: "Checkout ${{ github.repository }}"
327+
run: |
328+
mkdir kart
329+
cd kart
330+
git init
331+
git remote add origin https://github.com/${{ github.repository }}.git
332+
git fetch --depth 1 origin $GITHUB_SHA
333+
git checkout FETCH_HEAD
334+
git submodule update --init --recursive
323335
324336
#
325337
# setup
@@ -604,7 +616,15 @@ jobs:
604616
command -v kart
605617
kart --version
606618
607-
- uses: actions/checkout@v3
619+
- name: "Checkout ${{ github.repository }}"
620+
shell: bash
621+
run: |
622+
mkdir kart
623+
cd kart
624+
git init
625+
git remote add origin https://github.com/${{ github.repository }}.git
626+
git fetch --depth 1 origin $GITHUB_SHA
627+
git checkout FETCH_HEAD
608628
609629
- name: e2e test (no helper)
610630
env:
@@ -643,9 +663,15 @@ jobs:
643663
PY_VER_ID: "cp311-cp311"
644664

645665
steps:
646-
- uses: actions/checkout@v3
647-
with:
648-
submodules: recursive
666+
- name: "Checkout ${{ github.repository }}"
667+
run: |
668+
mkdir kart
669+
cd kart
670+
git init
671+
git remote add origin https://github.com/${{ github.repository }}.git
672+
git fetch --depth 1 origin $GITHUB_SHA
673+
git checkout FETCH_HEAD
674+
git submodule update --init --recursive
649675
650676
#
651677
# setup
@@ -780,9 +806,15 @@ jobs:
780806
PY_VER_INSTALLER: "https://www.python.org/ftp/python/3.11.6/python-3.11.6-macos11.pkg"
781807

782808
steps:
783-
- uses: actions/checkout@v3
784-
with:
785-
submodules: recursive
809+
- name: "Checkout ${{ github.repository }}"
810+
run: |
811+
mkdir kart
812+
cd kart
813+
git init
814+
git remote add origin https://github.com/${{ github.repository }}.git
815+
git fetch --depth 1 origin $GITHUB_SHA
816+
git checkout FETCH_HEAD
817+
git submodule update --init --recursive
786818
787819
#
788820
# setup
@@ -1038,9 +1070,15 @@ jobs:
10381070
)
10391071
10401072
steps:
1041-
- uses: actions/checkout@v3
1042-
with:
1043-
submodules: recursive
1073+
- name: "Checkout ${{ github.repository }}"
1074+
run: |
1075+
mkdir kart
1076+
cd kart
1077+
git init
1078+
git remote add origin https://github.com/${{ github.repository }}.git
1079+
git fetch --depth 1 origin $GITHUB_SHA
1080+
git checkout FETCH_HEAD
1081+
git submodule update --init --recursive
10441082
10451083
# Setup
10461084

0 commit comments

Comments
 (0)