Skip to content

Commit 8756a5a

Browse files
authored
tools: copyedit build-tarball.yml
PR-URL: #59808 Refs: https://www.shellcheck.net/wiki/SC2006 Refs: https://www.shellcheck.net/wiki/SC2086 Reviewed-By: Tierney Cyren <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 33966ad commit 8756a5a

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/build-tarball.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,14 @@ jobs:
5252
- name: Make tarball
5353
run: |
5454
export DISTTYPE=nightly
55-
export DATESTRING=`date "+%Y-%m-%d"`
55+
export DATESTRING=$(date "+%Y-%m-%d")
5656
export COMMIT=$(git rev-parse --short=10 "$GITHUB_SHA")
57-
./configure && make tar -j8 SKIP_XZ=1
58-
mkdir tarballs
59-
mv *.tar.gz tarballs
57+
./configure && make tar -j4 SKIP_XZ=1
6058
- name: Upload tarball artifact
6159
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6260
with:
6361
name: tarballs
64-
path: tarballs
62+
path: '*.tar.gz'
6563
compression-level: 0
6664
test-tarball-linux:
6765
needs: build-tarball
@@ -97,11 +95,10 @@ jobs:
9795
path: tarballs
9896
- name: Extract tarball
9997
run: |
100-
tar xzf tarballs/*.tar.gz -C $RUNNER_TEMP
101-
echo "TAR_DIR=$RUNNER_TEMP/`basename tarballs/*.tar.gz .tar.gz`" >> $GITHUB_ENV
98+
tar xzf tarballs/*.tar.gz -C "$RUNNER_TEMP"
99+
echo "TAR_DIR=$RUNNER_TEMP/$(basename tarballs/*.tar.gz .tar.gz)" >> "$GITHUB_ENV"
102100
- name: Build
103-
run: |
104-
make -C "$TAR_DIR" build-ci -j4 V=1
101+
run: make -C "$TAR_DIR" build-ci -j4 V=1
105102
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
106103
with:
107104
persist-credentials: false
@@ -113,5 +110,4 @@ jobs:
113110
mv tools/eslint "$TAR_DIR/tools"
114111
mv tools/eslint-rules "$TAR_DIR/tools"
115112
- name: Test
116-
run: |
117-
make -C "$TAR_DIR" run-ci -j4 V=1 TEST_CI_ARGS="-p dots --measure-flakiness 9"
113+
run: make -C "$TAR_DIR" run-ci -j4 V=1 TEST_CI_ARGS="-p dots --measure-flakiness 9"

0 commit comments

Comments
 (0)