3535
3636jobs :
3737 build-amd64 :
38+ if : ${{ github.repository == 'virtualmin/Virtualmin-Config' && (github.event_name == 'release' || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && !contains(github.event.head_commit.message, '[no-build]'))) }}
3839 runs-on : ubuntu-latest
39- if : ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && !contains(github.event.head_commit.message, '[no-build]')) }}
4040 env :
4141 TZ : Europe/Nicosia
4242 steps :
4343 - uses : actions/checkout@v4
44-
44+
4545 - uses : awalsh128/cache-apt-pkgs-action@latest
46- with :
46+ with :
4747 packages : ${{ env.BUILD_DEPS }}
4848 version : 1.0
4949
@@ -64,10 +64,10 @@ jobs:
6464 RELEASE_TAG : ${{ github.event.release.tag_name }}
6565 MANUAL_VERSION : ${{ inputs.version }}
6666 run : |-
67-
67+
6868 # Fail on error
6969 set -euo pipefail
70-
70+
7171 # Bootstrap build
7272 source bootstrap.bash \
7373 $([[ "$IS_RELEASE" == "true" ]] && echo "--release" || echo "--testing") \
8686
8787 # Set package section
8888 pkg_section=$([ "$IS_RELEASE" = "true" ] && echo admin || echo devel)
89-
89+
9090 # Set build base directory
9191 pkg_name="${{ env.PKG_NAME }}"
9292 destdirbase="$HOME/$pkg_name"
@@ -103,9 +103,9 @@ jobs:
103103 INSTALLBIN=/usr/bin \
104104 SITEPREFIX=/usr \
105105 PREFIX=/usr
106- make
106+ make
107107 make DESTDIR=$destdirbase-deb install
108-
108+
109109 # Make for RPM
110110 make clean
111111 perl Makefile.PL \
@@ -119,7 +119,7 @@ jobs:
119119 INSTALLBIN=/usr/bin \
120120 SITEPREFIX=/usr \
121121 PREFIX=/usr
122- make
122+ make
123123 make DESTDIR=$destdirbase-rpm install
124124
125125 # Create symlinks
@@ -150,7 +150,7 @@ jobs:
150150 --description "${{ env.PKG_DESC }}" \
151151 --summary "${{ env.PKG_SUMMARY }}" \
152152 --homepage "${{ env.PKG_HOMEPAGE }}"
153-
153+
154154 # Build RPM package
155155 build_native_package \
156156 --architectures noarch \
@@ -174,7 +174,7 @@ jobs:
174174 --description "${{ env.PKG_DESC }}" \
175175 --summary "${{ env.PKG_SUMMARY }}" \
176176 --homepage "${{ env.PKG_HOMEPAGE }}"
177-
177+
178178 # Upload and sign
179179 upload_list=("$ROOT_REPOS/"*)
180180 cloud_upload upload_list
0 commit comments