Skip to content

Commit

Permalink
ci: Fixing nfpm not found
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Erickson <tyler.erickson@seagate.com>
  • Loading branch information
vonericsen committed Oct 15, 2024
1 parent 1a33017 commit 25f9fc3
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,13 @@ jobs:
meson setup build -Dprefix=/ -Dmandir=/man -Dbindir=/ ${{ matrix.config.meson_opts }} --buildtype=release
meson install -C build
#NOTE: Moved to before creating tar file due to how we set permissions to create the tar
# add `GOBIN` to the `PATH` otherwise nfpm in next step can't be found
- uses: actions/setup-go@v5
if: ${{ matrix.config.create_package }}
with:
go-version: 'stable'
cache: false

- name: Create packages
if: ${{ matrix.config.create_package }}
working-directory: ${{ format('build/{0}', env.DESTDIR) }}
Expand Down Expand Up @@ -324,13 +330,6 @@ jobs:
if: ${{ matrix.config.os != 'windows-latest' }}
run: sudo chown root:root build/"${DESTDIR}${ARCHIVE_EXT}"

# add `GOBIN` to the `PATH` otherwise nfpm in next step can't be found
- uses: actions/setup-go@v5
if: ${{ matrix.config.create_package }}
with:
go-version: 'stable'
cache: false

- name: Generate Hashes
if: ${{ matrix.config.publish_release }}
shell: bash
Expand Down

0 comments on commit 25f9fc3

Please sign in to comment.