fix: removed debug data & re-add compression

This commit is contained in:
Daniel Hougaard
2024-10-09 01:48:23 +04:00
parent 6dad24ffde
commit b46bbea0c5
+2 -17
View File
@@ -48,9 +48,9 @@ jobs:
- name: Package into node binary - name: Package into node binary
run: | run: |
if [ "${{ matrix.os }}" != "linux" ]; then if [ "${{ matrix.os }}" != "linux" ]; then
pkg --no-bytecode --public-packages "*" --public --target ${{ matrix.target }}-${{ matrix.arch }} --output ./binary/infisical-core-${{ matrix.os }}-${{ matrix.arch }} . pkg --no-bytecode --public-packages "*" --public --compress GZip --target ${{ matrix.target }}-${{ matrix.arch }} --output ./binary/infisical-core-${{ matrix.os }}-${{ matrix.arch }} .
else else
pkg --no-bytecode --public-packages "*" --public --target ${{ matrix.target }}-${{ matrix.arch }} --output ./binary/infisical-core . pkg --no-bytecode --public-packages "*" --public --compress GZip --target ${{ matrix.target }}-${{ matrix.arch }} --output ./binary/infisical-core .
fi fi
# Set up .deb package structure (Debian/Ubuntu only) # Set up .deb package structure (Debian/Ubuntu only)
@@ -137,14 +137,6 @@ jobs:
- name: Build .rpm package - name: Build .rpm package
if: matrix.os == 'linux' if: matrix.os == 'linux'
run: | run: |
# Debug: Print current directory contents
echo "Current directory contents:"
ls -la
# Debug: Print binary file size
echo "Binary file size:"
ls -lh ./binary/infisical-core
# Create necessary directories # Create necessary directories
mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
@@ -159,19 +151,12 @@ jobs:
--target ${{ matrix.arch == 'x64' && 'x86_64' || 'aarch64' }} \ --target ${{ matrix.arch == 'x64' && 'x86_64' || 'aarch64' }} \
infisical-core.spec infisical-core.spec
# Debug: Print rpmbuild directory contents
echo "rpmbuild directory contents:"
ls -R rpmbuild
# Try to find the RPM file # Try to find the RPM file
find rpmbuild -name "*.rpm" find rpmbuild -name "*.rpm"
# Move the RPM file if found # Move the RPM file if found
if [ -n "$(find rpmbuild -name '*.rpm')" ]; then if [ -n "$(find rpmbuild -name '*.rpm')" ]; then
mv $(find rpmbuild -name '*.rpm') ./binary/infisical-core-${{matrix.arch}}.rpm mv $(find rpmbuild -name '*.rpm') ./binary/infisical-core-${{matrix.arch}}.rpm
# Debug: Print RPM file size
echo "RPM file size:"
ls -lh ./binary/infisical-core-${{matrix.arch}}.rpm
else else
echo "RPM file not found!" echo "RPM file not found!"
exit 1 exit 1