1818name : RC
1919on :
2020 push :
21- branches :
22- - ' **'
23- - ' !dependabot/**'
2421 tags :
2522 - ' *-rc*'
26- pull_request :
2723
2824concurrency :
2925 group : ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
@@ -35,12 +31,11 @@ jobs:
3531 archive :
3632 name : Archive
3733 runs-on : ubuntu-latest
38- timeout-minutes : 10 # C++ submodules might take longer
34+ timeout-minutes : 5 # Can be reduced as we are not checking out submodules
3935 steps :
40- - name : Checkout with submodules
36+ - name : Checkout
4137 uses : actions/checkout@v4
42- with :
43- submodules : ' recursive' # CRITICAL for C++ projects with dependencies
38+ # No longer need 'with: { submodules: 'recursive' }'
4439
4540 - name : Prepare for tag
4641 if : github.ref_type == 'tag'
@@ -53,30 +48,17 @@ jobs:
5348 echo "VERSION=${version}"
5449 echo "RC=${rc}"
5550
56- - name : Prepare for branch
57- if : github.ref_type == 'branch'
58- run : |
59- # Extract version from a file like VERSION.txt or CMakeLists.txt for branches
60- # For simplicity, we'll hardcode a dev version here.
61- version="0.1.0-dev"
62- rc=100
63- echo "VERSION=${version}" >> ${GITHUB_ENV}
64- echo "RC=${rc}" >> ${GITHUB_ENV}
65- echo "VERSION=${version}"
66- echo "RC=${rc}"
67-
6851 - name : Archive
6952 run : |
7053 id="apache-iceberg-cpp-${VERSION}-rc${RC}"
7154 tar_gz="${id}.tar.gz"
7255 echo "TAR_GZ=${tar_gz}" >> ${GITHUB_ENV}
73- # Use tar instead of git archive to include submodules
74- tar -czf "${tar_gz} " --transform "s,^./,${id}/," .
56+ # Reverted to the git archive command from the Go implementation
57+ git archive HEAD --prefix "${id}/ " --output "${tar_gz}"
7558 sha512sum "${tar_gz}" > "${tar_gz}.sha512"
7659
7760 - name : Audit
7861 run : |
79- # Make sure this script exists in your C++ repository
8062 dev/release/run_rat.sh "${TAR_GZ}"
8163
8264 - uses : actions/upload-artifact@v4
0 commit comments