Skip to content

Commit

Permalink
disabled signinig of all files insige archive
Browse files Browse the repository at this point in the history
  • Loading branch information
stamepicmorg committed Dec 16, 2024
1 parent 30a639b commit 2b653aa
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,39 +266,39 @@ jobs:
mv build/rehlds/HLTV/Director/director.so publish/bin/linux32/valve/dlls/director.so
mv build/rehlds/filesystem/FileSystem_Stdio/filesystem_stdio.so publish/bin/linux32/filesystem_stdio.so
- name: Find and Sign Files
run: |
# Define directory containing files
TARGET_DIR="publish/bin"
# Find and sign each file
find "$TARGET_DIR" -type f -name "*" | while read -r FILE; do
echo "Signing $FILE..."
gpg --batch --yes --detach-sign --armor -u "$REHLDS_LINUX_FINGERPRINT" "$FILE"
if [ $? -ne 0 ]; then
echo "Error: Failed to sign $FILE"
exit 4
fi
echo "$FILE signed successfully."
done
shell: bash

- name: Verify Signatures
run: |
# Verify the generated signatures
TARGET_DIR="publish/bin"
find "$TARGET_DIR" -type f -not -name "*.asc" | while read -r FILE; do
echo "Verifying signature for $FILE..."
gpg --verify "$FILE.asc" "$FILE"
if [ $? -ne 0 ]; then
echo "Error: Signature verification failed for $FILE"
exit 5
fi
echo "Signature for $FILE is valid."
done
shell: bash
# - name: Find and Sign Files
# run: |
#
# # Define directory containing files
# TARGET_DIR="publish/bin"
#
# # Find and sign each file
# find "$TARGET_DIR" -type f -name "*" | while read -r FILE; do
# echo "Signing $FILE..."
# gpg --batch --yes --detach-sign --armor -u "$REHLDS_LINUX_FINGERPRINT" "$FILE"
# if [ $? -ne 0 ]; then
# echo "Error: Failed to sign $FILE"
# exit 4
# fi
# echo "$FILE signed successfully."
# done
# shell: bash
#
# - name: Verify Signatures
# run: |
#
# # Verify the generated signatures
# TARGET_DIR="publish/bin"
# find "$TARGET_DIR" -type f -not -name "*.asc" | while read -r FILE; do
# echo "Verifying signature for $FILE..."
# gpg --verify "$FILE.asc" "$FILE"
# if [ $? -ne 0 ]; then
# echo "Error: Signature verification failed for $FILE"
# exit 5
# fi
# echo "Signature for $FILE is valid."
# done
# shell: bash

- name: Run GLIBC/ABI version compat test
run: |
Expand Down Expand Up @@ -372,16 +372,6 @@ jobs:
echo "$REHLDS_LINUX_FINGERPRINT:6:" | gpg --batch --import-ownertrust
echo "REHLDS_LINUX_FINGERPRINT=$REHLDS_LINUX_FINGERPRINT" >> $GITHUB_ENV
# Find and sign each win32 files, linux files already signed
find ./bin/win32 -type f -name "*" | while read -r FILE; do
echo "Signing $FILE..."
gpg --batch --yes --detach-sign --armor -u "$REHLDS_LINUX_FINGERPRINT" "$FILE"
if [ $? -ne 0 ]; then
echo "Error: Failed to sign $FILE"
exit 1
fi
echo "$FILE signed successfully."
done
sign_file() {
local file=$1
gpg --batch --yes --detach-sign --armor -u "$REHLDS_LINUX_FINGERPRINT" "$file"
Expand All @@ -396,21 +386,31 @@ jobs:
7z a -tzip rehlds-bin-${{ env.APP_VERSION }}.zip bin/ hlsdk/
sign_file "rehlds-bin-${{ env.APP_VERSION }}.zip"
# Find and sign each PDB files
find ./debug -type f -name "*" | while read -r FILE; do
echo "Signing $FILE..."
gpg --batch --yes --detach-sign --armor -u "$REHLDS_LINUX_FINGERPRINT" "$FILE"
if [ $? -ne 0 ]; then
echo "Error: Failed to sign $FILE"
exit 3
fi
echo "$FILE signed successfully."
done
# Pack and sign final archive
7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -aoa rehlds-dbg-${{ env.APP_VERSION }}.7z debug/
sign_file "rehlds-dbg-${{ env.APP_VERSION }}.7z"
# # Find and sign each win32 files, linux files already signed
# find ./bin/win32 -type f -name "*" | while read -r FILE; do
# echo "Signing $FILE..."
# gpg --batch --yes --detach-sign --armor -u "$REHLDS_LINUX_FINGERPRINT" "$FILE"
# if [ $? -ne 0 ]; then
# echo "Error: Failed to sign $FILE"
# exit 1
# fi
# echo "$FILE signed successfully."
# done
# # Find and sign each PDB files
# find ./debug -type f -name "*" | while read -r FILE; do
# echo "Signing $FILE..."
# gpg --batch --yes --detach-sign --armor -u "$REHLDS_LINUX_FINGERPRINT" "$FILE"
# if [ $? -ne 0 ]; then
# echo "Error: Failed to sign $FILE"
# exit 3
# fi
# echo "$FILE signed successfully."
# done

shell: bash

- name: Publish artifacts
Expand Down

0 comments on commit 2b653aa

Please sign in to comment.