[squash] use actions for pr tests
This commit is contained in:
parent
08f545c366
commit
1a8f2ec431
16
.ci-make.sh
16
.ci-make.sh
|
@ -77,10 +77,15 @@ case "$1" in
|
||||||
exit 255
|
exit 255
|
||||||
;;
|
;;
|
||||||
"download-binary")
|
"download-binary")
|
||||||
|
if [ "$GITHUB_BASE_REF" ] ; then
|
||||||
|
echo "forgejo actions pull request mode"
|
||||||
|
echo "making sure you didn't break binary builds..."
|
||||||
|
PR_MODE=true
|
||||||
|
fi
|
||||||
if [ "$GITHUB_REF_TYPE" = "tag" ] ; then
|
if [ "$GITHUB_REF_TYPE" = "tag" ] ; then
|
||||||
echo "INFO: Forgejo Actions mode!"
|
echo "INFO: Forgejo Actions mode!"
|
||||||
CI_COMMIT_TAG="$GITHUB_REF_NAME"
|
CI_COMMIT_TAG="$GITHUB_REF_NAME"
|
||||||
elif [ "$GITHUB_REF_TYPE" = "branch" ] ; then
|
elif [ "$GITHUB_REF_TYPE" = "branch" ] || [ $PR_MODE ] ; then
|
||||||
echo "WARNING: Not building a tag! Simulating it..."
|
echo "WARNING: Not building a tag! Simulating it..."
|
||||||
echo "(forgejo actions mode)"
|
echo "(forgejo actions mode)"
|
||||||
echo "(this will test the binary packaging without cutting a tag in the package)"
|
echo "(this will test the binary packaging without cutting a tag in the package)"
|
||||||
|
@ -92,6 +97,15 @@ case "$1" in
|
||||||
git describe --tags HEAD
|
git describe --tags HEAD
|
||||||
CI_COMMIT_TAG_RESOLVE=$(git describe --tags HEAD --abbrev=0)
|
CI_COMMIT_TAG_RESOLVE=$(git describe --tags HEAD --abbrev=0)
|
||||||
echo "Closest existing tag: $CI_COMMIT_TAG_RESOLVE"
|
echo "Closest existing tag: $CI_COMMIT_TAG_RESOLVE"
|
||||||
|
if [ "$CI_COMMIT_TAG_RESOLVE" = *"-dev" ] ; then
|
||||||
|
if [ $PR_MODE ] ; then
|
||||||
|
echo "I can't figure out which release version of Forgejo to build your PR against."
|
||||||
|
echo "Whatever you're trying to do is not yet implemented."
|
||||||
|
exit 97
|
||||||
|
fi
|
||||||
|
echo "err! building dev version- skipping binary dl"
|
||||||
|
CI_COMMIT_TAG_RESOLVE=
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
echo "Proceeding with resolved tag: $CI_COMMIT_TAG_RESOLVE"
|
echo "Proceeding with resolved tag: $CI_COMMIT_TAG_RESOLVE"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
on: [push]
|
on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
build-forgejo-deb:
|
build-forgejo-deb:
|
||||||
runs-on: bullseye
|
runs-on: bullseye
|
||||||
|
|
Loading…
Reference in a new issue