File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: Builds
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ alpine :
7+ description : ' Use alpine to build a fully static executable for linux'
8+ required : false
9+ default : ' false'
510 release :
611 types : [created]
712 push :
1116jobs :
1217 build :
1318 runs-on : ${{ matrix.os }}
14- container : ${{ (startsWith(matrix.os,'ubuntu') && 'alpine:3.12') || '' }}
19+ container : ${{ (github.event.inputs.alpine == 'true' && startsWith(matrix.os,'ubuntu') && 'alpine:3.12') || '' }}
1520 defaults :
1621 run :
1722 shell : ${{ (startsWith(matrix.os,'windows') && 'bash') || 'sh' }}
3540
3641 steps :
3742 - name : Install system dependencies
38- if : runner.os == 'Linux'
43+ if : github.event.inputs.alpine == 'true' && runner.os == 'Linux'
3944 run : |
4045 apk add --no-cache curl gcc g++ gmp-dev ncurses-dev libffi-dev make xz gzip tar perl git bash sudo binutils-gold
4146 apk add --no-cache zlib zlib-dev zlib-static gmp gmp-dev ncurses-static
You can’t perform that action at this time.
0 commit comments