@@ -108,3 +108,51 @@ jobs:
108108 env :
109109 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
110110
111+ # ========================================================================
112+ manylinux_2_28_qhttpserver :
113+ name : " Build the package for Manylinux 2.28"
114+ runs-on : ubuntu-latest
115+ steps :
116+ - name : Checkout code
117+ uses : actions/checkout@v3
118+ - name : Free Disk Space (Ubuntu)
119+ 120+ with :
121+ # this might remove tools that are actually needed,
122+ # if set to "true" but frees about 6 GB
123+ tool-cache : false
124+ # all of these default to true, but feel free to set to
125+ # "false" if necessary for your workflow
126+ android : true
127+ dotnet : true
128+ haskell : true
129+ large-packages : false
130+ swap-storage : true
131+ - name : Build image
132+ run : docker build -f ./Dockerfile-manylinux2.28 -t aymara/qhttpserver-manylinux2.28:build .
133+ - name : Extract package and version number from docker image
134+ id : extract
135+ shell : bash
136+ run : |
137+ dockerImage="aymara/qhttpserver-manylinux2.28:build"
138+ packageDir="/usr/share/apps/qhttpserver/packages/"
139+ cicd/extract_package.sh $dockerImage $packageDir $GITHUB_OUTPUT
140+ - name : Upload nightly build package
141+ if : ${{ !startsWith(github.ref, 'refs/tags/') }}
142+ shell : bash
143+ run : |
144+ tagName=${{ steps.extract.outputs.version }}-nightly
145+ gh release create --prerelease ${tagName} || /bin/true
146+ gh release upload ${tagName} --clobber ./${{ steps.extract.outputs.filename }}
147+ env :
148+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
149+ - name : Upload release package
150+ uses : softprops/action-gh-release@v1
151+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
152+ with :
153+ name : ${{ steps.extract.outputs.version }}
154+ files : |
155+ ./${{ steps.extract.outputs.filename }}
156+ env :
157+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
158+
0 commit comments