Skip to content

Commit 1761f40

Browse files
committed
Build the source tarball in CI
1 parent b59566f commit 1761f40

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.circleci/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,6 +1842,17 @@ jobs:
18421842
- matrix_notify_failure_unless_pr
18431843
- matrix_notify_release_unless_pr
18441844

1845+
c_source_tarball:
1846+
<<: *base_ubuntu2404_small
1847+
steps:
1848+
- checkout
1849+
- setup_prerelease
1850+
- run: scripts/create_source_tarball.sh
1851+
- store_artifacts:
1852+
path: upload/
1853+
- matrix_notify_failure_unless_pr
1854+
- matrix_notify_release_unless_pr
1855+
18451856
b_alpine_docker:
18461857
<<: *base_cimg_small
18471858
steps:
@@ -2017,6 +2028,7 @@ workflows:
20172028
- b_osx
20182029
- b_win
20192030
- b_ems
2031+
- c_source_tarball: *requires_nothing
20202032

20212033
nightly:
20222034

ReleaseChecklist.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,7 @@ At least a day before the release:
6767
- [ ] Wait for the CI runs on the tag itself.
6868

6969
### Upload Release Artifacts and Publish Binaries
70-
- [ ] Switch to the tag that archives have to be created for.
71-
- [ ] Create the `prerelease.txt` file: `echo -n > prerelease.txt`.
72-
- [ ] Run `scripts/create_source_tarball.sh` to create the source tarball. This will create the tarball in a directory called `upload`.
73-
- [ ] Take the tarball from the upload directory (its name should be `solidity_x.x.x.tar.gz`, otherwise `prerelease.txt` was missing in the step before) and upload it to the release page.
70+
- [ ] Take the source tarball (`solidity_x.x.x.tar.gz`) from `c_source_tarball` run of the tagged commit on Circle CI and upload it to the release page.
7471
- [ ] Take the `github-binaries.tar` tarball from `c_release_binaries` run of the tagged commit on Circle CI and add all binaries from it to the release page.
7572
Make sure it contains four binaries: `solc-windows.exe`, `solc-macos`, `solc-static-linux` and `soljson.js`.
7673
- [ ] Take the `solc-bin-binaries.tar` tarball from `c_release_binaries` run of the tagged commit on Circle CI and add all binaries from it to solc-bin.
@@ -135,10 +132,7 @@ At least a day before the release:
135132
- Check the `Set as a pre-release` box.
136133
- Click the `Publish release` button on the release page, creating the tag.
137134
- [ ] Wait for the CI runs on the tag itself.
138-
- [ ] Switch to the tag that archives have to be created for.
139-
- [ ] Create the `prerelease.txt` file: `scripts/prerelease_suffix.sh pre "$(git describe --tags --exact-match)" > prerelease.txt`.
140-
- [ ] Run `scripts/create_source_tarball.sh` to create the source tarball. This will create the tarball in a directory called `upload`.
141-
- [ ] Take the tarball from the upload directory (its name should be `solidity_x.x.x-pre.N.tar.gz`, if `prerelease.txt` was created correctly) and upload it to the release page.
135+
- [ ] Take the source tarball (`solidity_x.x.x-pre.N.tar.gz`) from `c_source_tarball` run of the tagged commit on Circle CI and upload it to the release page.
142136
- [ ] Take the `github-binaries.tar` tarball from `c_release_binaries` run of the tagged commit on Circle CI and add all binaries from it to the release page.
143137
Make sure it contains four binaries: `solc-windows.exe`, `solc-macos`, `solc-static-linux` and `soljson.js`.
144138
- [ ] Take the `solc-bin-binaries.tar` tarball from `c_release_binaries` run of the tagged commit on Circle CI and add all binaries from it to solc-bin.

0 commit comments

Comments
 (0)