File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 description : ' Existing release asset name to merge into resources/'
1212 required : true
1313 default : ' resources.zip'
14+ mutant_asset_name :
15+ description : ' Existing Linux malefic-mutant release asset to bundle as source_code/bin/malefic-mutant'
16+ required : true
17+ default : ' malefic-mutant-x86_64-unknown-linux-musl'
1418 merge_strategy :
1519 description : ' How to handle duplicate files under resources/'
1620 required : true
3337 env :
3438 TAG_NAME : ${{ inputs.tag_name }}
3539 RESOURCE_ASSET_NAME : ${{ inputs.resource_asset_name }}
40+ MUTANT_ASSET_NAME : ${{ inputs.mutant_asset_name }}
3641 MERGE_STRATEGY : ${{ inputs.merge_strategy }}
3742 steps :
3843 - name : Checkout tagged source
@@ -113,6 +118,22 @@ jobs:
113118
114119 rsync -a "${merge_root}/" resources/
115120
121+ - name : Bundle Linux malefic-mutant binary
122+ env :
123+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
124+ shell : bash
125+ run : |
126+ mkdir -p .release-assets bin
127+ gh release download "$TAG_NAME" \
128+ --repo "${GITHUB_REPOSITORY}" \
129+ --pattern "$MUTANT_ASSET_NAME" \
130+ --dir .release-assets \
131+ --clobber
132+
133+ test -f ".release-assets/$MUTANT_ASSET_NAME"
134+ cp ".release-assets/$MUTANT_ASSET_NAME" bin/malefic-mutant
135+ chmod +x bin/malefic-mutant
136+
116137 - name : Vendor Rust dependencies
117138 shell : bash
118139 run : |
You can’t perform that action at this time.
0 commit comments