AntelopeIO / cdt

Contract Development Toolkit (CDT) is a suite of tools to facilitate C/C++ development of contracts for Antelope blockchains
Other
30 stars 30 forks source link

[4.1 -> main] update various CI workflow action versions; meeting new requirement of asset-artifact-download-action #297

Closed spoonincode closed 4 months ago

spoonincode commented 4 months ago

main merge of #296:

When fixing #291, asset-artifact-download-action@v3 happened to be modified in a way that it does an HTTP HEAD on the artifact payload (AntelopeIO/asset-artifact-download-action@589a841).

Unfortunately it turns out that HTTP HEAD requests on artifact payloads only seem to work when using the newer artifact mechanics provided by actions/upload-artifact@v4, thus causing spring workflows to fail to find a cdt artifact (https://github.com/AntelopeIO/spring/actions/runs/9744641333/job/26897606178) since cdt is still using v3. I hadn't noticed this in testing since the spring repo is using version v4 for a while now.

Upgrade to actions/upload-artifact@v4 so that spring, etc can find cdt when using a git ref[^1]. And go ahead and update other actions in here that will get rid of all the deprecation warnings that are flagged.

[^1]: Older release branches of leap use released cdt versions -- getting those aren't affected by this HTTP HEAD issue so there isn't a need to push this change back further than cdt's 4.1 branch