mirror of
https://github.com/nodejs/node.git
synced 2025-12-28 07:50:41 +00:00
tools: use sparse checkout in build-tarball.yml
PR-URL: https://github.com/nodejs/node/pull/59788 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>
This commit is contained in:
parent
89fa1a929d
commit
1eca2cc548
22
.github/workflows/build-tarball.yml
vendored
22
.github/workflows/build-tarball.yml
vendored
@ -73,6 +73,8 @@ jobs:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
with:
|
||||
persist-credentials: false
|
||||
sparse-checkout: .github/actions/install-clang
|
||||
sparse-checkout-cone-mode: false
|
||||
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
||||
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
||||
with:
|
||||
@ -92,15 +94,19 @@ jobs:
|
||||
run: |
|
||||
tar xzf tarballs/*.tar.gz -C $RUNNER_TEMP
|
||||
echo "TAR_DIR=$RUNNER_TEMP/`basename tarballs/*.tar.gz .tar.gz`" >> $GITHUB_ENV
|
||||
- name: Copy directories needed for testing
|
||||
run: |
|
||||
cp -r tools/eslint $TAR_DIR/tools
|
||||
cp -r tools/eslint-rules $TAR_DIR/tools
|
||||
- name: Build
|
||||
run: |
|
||||
cd $TAR_DIR
|
||||
make build-ci -j4 V=1
|
||||
make -C "$TAR_DIR" build-ci -j4 V=1
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
with:
|
||||
persist-credentials: false
|
||||
sparse-checkout: |
|
||||
tools/eslint
|
||||
tools/eslint-rules
|
||||
- name: Move directories needed for testing
|
||||
run: |
|
||||
mv tools/eslint "$TAR_DIR/tools"
|
||||
mv tools/eslint-rules "$TAR_DIR/tools"
|
||||
- name: Test
|
||||
run: |
|
||||
cd $TAR_DIR
|
||||
make run-ci -j4 V=1 TEST_CI_ARGS="-p dots --measure-flakiness 9"
|
||||
make -C "$TAR_DIR" run-ci -j4 V=1 TEST_CI_ARGS="-p dots --measure-flakiness 9"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user