Skip to content

Commit

Permalink
test CI feature
Browse files Browse the repository at this point in the history
  • Loading branch information
daixtrose committed Jun 16, 2024
1 parent 45e783a commit fe41804
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ jobs:
run: |
CMAKE_PROJECT_VERSION=$(cmake --system-information | awk -F= '$1~/CMAKE_PROJECT_VERSION:STATIC/{print$2}')
CMAKE_SYSTEM_NAME=$(cmake -N --system-information | grep "CMAKE_SYSTEM_NAME \"" | cut -d\" -f2)
DEBIAN_PACKAGE_FILENAME="example_3-${CMAKE_PROJECT_VERSION}-${CMAKE_SYSTEM_NAME}.deb"
PACKAGE_NAME="example_3-${CMAKE_PROJECT_VERSION}-${CMAKE_SYSTEM_NAME}"
DEBIAN_PACKAGE_FILENAME="${PACKAGE_NAME}.deb"
RPM_PACKAGE_FILENAME="${PACKAGE_NAME}.rpm"
echo "Checking content of '$DEBIAN_PACKAGE_FILENAME'"
dpkg -c ${DEBIAN_PACKAGE_FILENAME}
echo "DEBIAN_PACKAGE_FILENAME=${DEBIAN_PACKAGE_FILENAME}" >> $GITHUB_OUTPUT
Expand All @@ -34,6 +36,7 @@ jobs:
with:
files: |
build_example_3/${{ steps.check-packages.outputs.DEBIAN_PACKAGE_FILENAME }}
build_example_3/${{ steps.check-packages.outputs.RPM_PACKAGE_FILENAME }}
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: latest
# TODO: check https://github.com/marketplace/actions/cmake-swiss-army-knife
Expand Down

0 comments on commit fe41804

Please sign in to comment.