1- name : release
1+ name : Release
22
33on :
4- push :
5- tags :
6- - " stable"
7- - " rc"
8- - " v*.*.*"
9- schedule :
10- - cron : " 0 6 * * *"
114 workflow_dispatch :
5+ inputs :
6+ isNightly :
7+ description : " Is this a nightly version or a release - Y or N"
8+ type : string
9+ required : true
10+ default : " Y"
11+ version :
12+ description : " stable version for the build"
13+ type : string
14+ required : false
15+ default : " v0.3.0"
1216
1317env :
1418 CARGO_TERM_COLOR : always
15- IS_NIGHTLY : ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch ' }}
19+ IS_NIGHTLY : ${{ inputs.isNightly == 'Y ' }}
1620 PROFILE : maxperf
17- STABLE_VERSION : " v0.3.0 "
21+ STABLE_VERSION : ${{ inputs.version }}
1822
1923jobs :
2024 prepare :
6569 env :
6670 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6771
68- release-docker :
69- name : Release Docker
70- needs : prepare
71- uses : ./.github/workflows/docker-publish.yml
72- with :
73- tag_name : ${{ needs.prepare.outputs.tag_name }}
74-
7572 release :
7673 permissions :
7774 id-token : write
@@ -116,12 +113,12 @@ jobs:
116113 svm_target_platform : macosx-amd64
117114 platform : darwin
118115 arch : amd64
119- - runner : macos-latest-large
116+ - runner : macos-14
120117 target : aarch64-apple-darwin
121118 svm_target_platform : macosx-aarch64
122119 platform : darwin
123120 arch : arm64
124- - runner : Windows
121+ - runner : windows-2022
125122 target : x86_64-pc-windows-msvc
126123 svm_target_platform : windows-amd64
127124 platform : win32
@@ -171,7 +168,7 @@ jobs:
171168
172169 cargo build "${flags[@]}"
173170
174- bins=(anvil cast chisel forge)
171+ bins=(cast forge)
175172 for name in "${bins[@]}"; do
176173 bin=$OUT_DIR/$name$ext
177174 echo ""
@@ -192,16 +189,16 @@ jobs:
192189 shell : bash
193190 run : |
194191 if [ "$PLATFORM_NAME" == "linux" ]; then
195- tar -czvf "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C $OUT_DIR forge cast anvil chisel
192+ tar -czvf "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C $OUT_DIR forge cast
196193 echo "file_name=foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" >> $GITHUB_OUTPUT
197194 elif [ "$PLATFORM_NAME" == "darwin" ]; then
198195 # We need to use gtar here otherwise the archive is corrupt.
199196 # See: https://github.com/actions/virtual-environments/issues/2619
200- gtar -czvf "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C $OUT_DIR forge cast anvil chisel
197+ gtar -czvf "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C $OUT_DIR forge cast
201198 echo "file_name=foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" >> $GITHUB_OUTPUT
202199 else
203200 cd $OUT_DIR
204- 7z a -tzip "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" forge.exe cast.exe anvil.exe chisel.exe
201+ 7z a -tzip "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" forge.exe cast.exe
205202 mv "foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" ../../../
206203 echo "file_name=foundry_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" >> $GITHUB_OUTPUT
207204 fi
@@ -217,13 +214,9 @@ jobs:
217214 sudo apt-get -y install help2man
218215 help2man -N $OUT_DIR/forge > forge.1
219216 help2man -N $OUT_DIR/cast > cast.1
220- help2man -N $OUT_DIR/anvil > anvil.1
221- help2man -N $OUT_DIR/chisel > chisel.1
222217 gzip forge.1
223218 gzip cast.1
224- gzip anvil.1
225- gzip chisel.1
226- tar -czvf "foundry_man_${VERSION_NAME}.tar.gz" forge.1.gz cast.1.gz anvil.1.gz chisel.1.gz
219+ tar -czvf "foundry_man_${VERSION_NAME}.tar.gz" forge.1.gz cast.1.gz
227220 echo "foundry_man=foundry_man_${VERSION_NAME}.tar.gz" >> $GITHUB_OUTPUT
228221
229222 # Creates the release for this specific version
@@ -242,9 +235,7 @@ jobs:
242235 uses : actions/attest-build-provenance@v2
243236 with :
244237 subject-path : |
245- ${{ env.anvil_bin_path }}
246238 ${{ env.cast_bin_path }}
247- ${{ env.chisel_bin_path }}
248239 ${{ env.forge_bin_path }}
249240
250241 # If this is a nightly release, it also updates the release
@@ -290,7 +281,7 @@ jobs:
290281 issue :
291282 name : Open an issue
292283 runs-on : ubuntu-latest
293- needs : [ prepare, release-docker, release , cleanup ]
284+ needs : [ prepare, release, cleanup ]
294285 if : failure()
295286 steps :
296287 - uses : actions/checkout@v4
0 commit comments