Skip to content

Commit

Permalink
ci: Fixing deb and rpm package builds
Browse files Browse the repository at this point in the history
Changing permissions back to default before calling deb and rpm creation steps since now that is failing when ownership is root:root

Signed-off-by: Tyler Erickson <[email protected]>
  • Loading branch information
vonericsen committed Oct 15, 2024
1 parent eca0ca7 commit 50b0be8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ jobs:
- name: Set ownership of executables to root:root
if: ${{ matrix.config.os != 'windows-latest' }}
run: sudo chown -R root:root build


- name: Packing release
env:
Expand Down Expand Up @@ -326,6 +325,10 @@ jobs:
else
version=$(printf "%s-dev" $(date +'%y.%m.%d'))
fi
#Change ownership back before running deb/rpm creation
CURRENT_UID=$(id -u)
CURRENT_GID=$(id -g)
sudo chown -R $CURRENT_UID:$CURRENT_GID build
sed -i '/version:/ s/"[^"][^"]*"/"'"$version"'"/' ../../nfpm.yaml
nfpm package -f ../../nfpm.yaml -p deb -t ..
nfpm package -f ../../nfpm.yaml -p rpm -t ..
Expand Down

0 comments on commit 50b0be8

Please sign in to comment.