Rev | Line | |
---|
[106] | 1 | # $Id$
|
---|
| 2 |
|
---|
| 3 | name: "Build Tewi HTTPd"
|
---|
| 4 |
|
---|
| 5 | on:
|
---|
| 6 | workflow_dispatch:
|
---|
| 7 | push:
|
---|
| 8 |
|
---|
| 9 | concurrency:
|
---|
| 10 | group: "build"
|
---|
| 11 | cancel-in-progress: true
|
---|
| 12 |
|
---|
| 13 | jobs:
|
---|
| 14 | build-win32:
|
---|
| 15 | name: "Build for Windows 32-bit"
|
---|
| 16 | runs-on: ubuntu-latest
|
---|
| 17 |
|
---|
| 18 | permissions:
|
---|
| 19 | contents: write
|
---|
| 20 |
|
---|
| 21 | steps:
|
---|
| 22 | - name: Checkout
|
---|
| 23 | uses: actions/checkout@v4
|
---|
| 24 | - name: Install packages
|
---|
[107] | 25 | run: sudo apt-get install nsis mingw-w64
|
---|
[106] | 26 | - name: Build
|
---|
| 27 | run: ./installer.sh win32
|
---|
| 28 | - name: Rename
|
---|
| 29 | run: mv install-nossl.exe tewiinst32-nossl.exe && mv install-ssl.exe tewiinst32-ssl.exe
|
---|
| 30 | - name: Create a zipfile
|
---|
| 31 | run: zip -rv tewiinst32.zip tewiinst32-*.exe
|
---|
| 32 | - name: Upload artifact
|
---|
| 33 | uses: actions/upload-artifact@v4
|
---|
| 34 | with:
|
---|
| 35 | name: build-win32
|
---|
| 36 | path: tewiinst32.zip
|
---|
| 37 |
|
---|
| 38 | build-win64:
|
---|
| 39 | name: "Build for Windows 64-bit"
|
---|
| 40 | runs-on: ubuntu-latest
|
---|
| 41 |
|
---|
| 42 | permissions:
|
---|
| 43 | contents: write
|
---|
| 44 |
|
---|
| 45 | steps:
|
---|
| 46 | - name: Checkout
|
---|
| 47 | uses: actions/checkout@v4
|
---|
| 48 | - name: Install packages
|
---|
[107] | 49 | run: sudo apt-get install nsis mingw-w64
|
---|
[106] | 50 | - name: Build
|
---|
| 51 | run: ./installer.sh win64
|
---|
| 52 | - name: Rename
|
---|
| 53 | run: mv install-nossl.exe tewiinst64-nossl.exe && mv install-ssl.exe tewiinst64-ssl.exe
|
---|
| 54 | - name: Create a zipfile
|
---|
| 55 | run: zip -rv tewiinst64.zip tewiinst64-*.exe
|
---|
| 56 | - name: Upload artifact
|
---|
| 57 | uses: actions/upload-artifact@v4
|
---|
| 58 | with:
|
---|
| 59 | name: build-win64
|
---|
| 60 | path: tewiinst64.zip
|
---|
| 61 |
|
---|
| 62 | release:
|
---|
| 63 | name: "Release"
|
---|
| 64 | runs-on: ubuntu-latest
|
---|
| 65 |
|
---|
| 66 | permissions:
|
---|
| 67 | contents: write
|
---|
| 68 |
|
---|
| 69 | needs: [build-win32]
|
---|
| 70 |
|
---|
| 71 | steps:
|
---|
| 72 | - name: Checkout
|
---|
| 73 | uses: actions/checkout@v4
|
---|
| 74 | - name: Download from build-win32
|
---|
| 75 | uses: actions/download-artifact@v4
|
---|
| 76 | with:
|
---|
| 77 | name: build-win32
|
---|
| 78 | - name: Download from build-win64
|
---|
| 79 | uses: actions/download-artifact@v4
|
---|
| 80 | with:
|
---|
| 81 | name: build-win64
|
---|
| 82 | - name: Extract
|
---|
| 83 | run: unzip tewiinst32.zip && unzip tewiinst64.zip
|
---|
| 84 | - name: Delete old release
|
---|
| 85 | run: gh release delete "$(make get-version)" --cleanup-tag -y || true
|
---|
| 86 | env:
|
---|
| 87 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
---|
| 88 | - name: Release
|
---|
| 89 | run: gh release create -t "v$(make get-version)" "$(make get-version)" tewiinst32*.exe tewiinst64*.exe -n "Version \`$(make get-version)\` was build in this release"
|
---|
| 90 | env:
|
---|
| 91 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.