Skip to content

Commit

Permalink
Remove dependency on actions/checkout
Browse files Browse the repository at this point in the history
Hopefully fix node20 issue on linux build.
  • Loading branch information
olsen232 committed Sep 4, 2024
1 parent cb74bd6 commit f0ea81d
Showing 1 changed file with 28 additions and 21 deletions.
49 changes: 28 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,16 @@ jobs:
- 3306:3306

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

#
# setup
#
- name: "setup: checkout ${{ github.repository }}"
uses: actions/checkout@v4
with:
submodules: recursive

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

Expand Down Expand Up @@ -317,13 +317,21 @@ jobs:
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"

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

#
# setup
#

# actions/checkout uses Node. Node uses GLIBC. GLIBC is very old on manylinux and Node doesn't like it. Avoid using actions/checkout.
- name: "setup: checkout ${{ github.repository }}"
run: |
git config --global --add safe.directory $(pwd)
git init
git remote add origin https://github.com/${{ github.repository }}.git
git fetch --depth 1 origin ${GITHUB_SHA}
git checkout FETCH_HEAD
git submodule update --init --recursive
# lukka/get-cmake uses Node... avoid using it.
- name: "setup: cmake & ninja"
uses: lukka/[email protected] # workaround for node 20 issue
with:
Expand Down Expand Up @@ -604,7 +612,8 @@ jobs:
command -v kart
kart --version
- uses: actions/checkout@v3
- name: "Checkout ${{ github.repository }}"
uses: actions/checkout@v4

- name: e2e test (no helper)
env:
Expand Down Expand Up @@ -643,10 +652,6 @@ jobs:
PY_VER_ID: "cp311-cp311"

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

#
# setup
#
Expand Down Expand Up @@ -780,13 +785,13 @@ jobs:
PY_VER_INSTALLER: "https://www.python.org/ftp/python/3.11.6/python-3.11.6-macos11.pkg"

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

#
# setup
#
- name: "setup: checkout ${{ github.repository }}"
uses: actions/checkout@v4
with:
submodules: recursive

- uses: maxim-lobanov/setup-xcode@v1
with:
Expand Down Expand Up @@ -1038,12 +1043,14 @@ jobs:
)
steps:
- uses: actions/checkout@v3
#
# setup
#
- name: "setup: checkout ${{ github.repository }}"
uses: actions/checkout@v4
with:
submodules: recursive

# Setup

- name: "msvc setup"
uses: ilammy/msvc-dev-cmd@v1

Expand Down

0 comments on commit f0ea81d

Please sign in to comment.