Skip to content

Commit

Permalink
Test action build packages
Browse files Browse the repository at this point in the history
  • Loading branch information
isboston committed Nov 29, 2024
1 parent 5704765 commit d2e2772
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/build_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,27 @@ jobs:
echo "build_deb=$BUILD_DEB" >> $GITHUB_OUTPUT
echo "build_rpm=$BUILD_RPM" >> $GITHUB_OUTPUT
echo "CHANGED_FILES=$CHANGED_FILES"
echo "BUILD_DEB=$BUILD_DEB"
echo "BUILD_RPM=$BUILD_RPM"
- name: Set matrix
id: set-matrix
run: |
matrix=$(cat <<EOF | jq -c '{include: [.include[] | select(.execute == true)]}'
{
"include": [
{"packageType": "deb", "execute": ${BUILD_DEB:-false}},
{"packageType": "rpm", "execute": ${BUILD_RPM:-false}}
]
}
EOF
)
BUILD_DEB="${{ steps.changes.outputs.build_deb }}"
BUILD_RPM="${{ steps.changes.outputs.build_rpm }}"
echo "BUILD_DEB=$BUILD_DEB"
echo "BUILD_RPM=$BUILD_RPM"
matrix=$(jq -n \
--arg build_deb "$BUILD_DEB" \
--arg build_rpm "$BUILD_RPM" \
'{
include: [
{packageType: "deb", execute: ($build_deb == "true")},
{packageType: "rpm", execute: ($build_rpm == "true")}
]
} | {include: [.include[] | select(.execute == true)]}')
echo "matrix=$matrix"
echo "matrix=$matrix" >> $GITHUB_OUTPUT
build:
Expand Down
2 changes: 1 addition & 1 deletion install/rpm/SPECS/SOURCES/product.rpmlintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
########## Ignoring node_modules errors due to lack of ability to influence them
########### Ignoring node_modules errors due to lack of ability to influence them
addFilter(r'node_modules')

# Packages use a non-standard user and group for our project directories, but the user and group are created in %pre common
Expand Down

0 comments on commit d2e2772

Please sign in to comment.