Skip to content

Commit 25f9fc3

Browse files
committed
ci: Fixing nfpm not found
Signed-off-by: Tyler Erickson <tyler.erickson@seagate.com>
1 parent 1a33017 commit 25f9fc3

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/meson.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,13 @@ jobs:
288288
meson setup build -Dprefix=/ -Dmandir=/man -Dbindir=/ ${{ matrix.config.meson_opts }} --buildtype=release
289289
meson install -C build
290290
291-
#NOTE: Moved to before creating tar file due to how we set permissions to create the tar
291+
# add `GOBIN` to the `PATH` otherwise nfpm in next step can't be found
292+
- uses: actions/setup-go@v5
293+
if: ${{ matrix.config.create_package }}
294+
with:
295+
go-version: 'stable'
296+
cache: false
297+
292298
- name: Create packages
293299
if: ${{ matrix.config.create_package }}
294300
working-directory: ${{ format('build/{0}', env.DESTDIR) }}
@@ -324,13 +330,6 @@ jobs:
324330
if: ${{ matrix.config.os != 'windows-latest' }}
325331
run: sudo chown root:root build/"${DESTDIR}${ARCHIVE_EXT}"
326332

327-
# add `GOBIN` to the `PATH` otherwise nfpm in next step can't be found
328-
- uses: actions/setup-go@v5
329-
if: ${{ matrix.config.create_package }}
330-
with:
331-
go-version: 'stable'
332-
cache: false
333-
334333
- name: Generate Hashes
335334
if: ${{ matrix.config.publish_release }}
336335
shell: bash

0 commit comments

Comments
 (0)