arm
Some checks failed
/ mirror (push) Has been skipped
/ build-forgejo-deb (push) Successful in 5m49s
/ multitest-bookworm-lxc (push) Has been cancelled
/ multitest-bullseye-docker (push) Successful in 29s
/ multitest-buster-docker (push) Has been cancelled
/ publish (push) Successful in 22s
Some checks failed
/ mirror (push) Has been skipped
/ build-forgejo-deb (push) Successful in 5m49s
/ multitest-bookworm-lxc (push) Has been cancelled
/ multitest-bullseye-docker (push) Successful in 29s
/ multitest-buster-docker (push) Has been cancelled
/ publish (push) Successful in 22s
This commit is contained in:
parent
3ed9644c60
commit
bcaec4cb84
4 changed files with 331 additions and 346 deletions
15
.ci-make.sh
15
.ci-make.sh
|
@ -19,7 +19,8 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
"submodule-make")
|
"submodule-make")
|
||||||
cd "$2"
|
cd "$2"
|
||||||
shift;shift
|
shift
|
||||||
|
shift
|
||||||
make "$@"
|
make "$@"
|
||||||
exit $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
|
@ -130,16 +131,16 @@ case "$1" in
|
||||||
CI_COMMIT_TAG="$CI_COMMIT_TAG_RESOLVE"
|
CI_COMMIT_TAG="$CI_COMMIT_TAG_RESOLVE"
|
||||||
fi
|
fi
|
||||||
if [ $CI_COMMIT_TAG ]; then
|
if [ $CI_COMMIT_TAG ]; then
|
||||||
CI_RELEASE_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$CI_VERIFY_REPO/releases/tags/$CI_COMMIT_TAG | jq -c '.assets[]' | grep linux-amd64)
|
CI_RELEASE_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$CI_VERIFY_REPO/releases/tags/$CI_COMMIT_TAG | jq -c '.assets[]' | grep linux-arm64)
|
||||||
CI_RELEASE_BINARY_URL=$(echo "$CI_RELEASE_ASSETS" | grep linux-amd64\" | jq -r --jsonargs .browser_download_url)
|
CI_RELEASE_BINARY_URL=$(echo "$CI_RELEASE_ASSETS" | grep linux-arm64\" | jq -r --jsonargs .browser_download_url)
|
||||||
CI_RELEASE_SHA256=$(curl $(echo "$CI_RELEASE_ASSETS" | grep linux-amd64.sha256\" | jq -r --jsonargs .browser_download_url) | cut -d ' ' -f1)
|
CI_RELEASE_SHA256=$(curl $(echo "$CI_RELEASE_ASSETS" | grep linux-arm64.sha256\" | jq -r --jsonargs .browser_download_url) | cut -d ' ' -f1)
|
||||||
wget -nv --content-disposition $CI_RELEASE_BINARY_URL
|
wget -nv --content-disposition $CI_RELEASE_BINARY_URL
|
||||||
DOWNLOAD_SHA256=$(sha256sum forgejo-*-linux-amd64 | cut -d ' ' -f1)
|
DOWNLOAD_SHA256=$(sha256sum forgejo-*-linux-arm64 | cut -d ' ' -f1)
|
||||||
if [ $CI_RELEASE_SHA256 != $DOWNLOAD_SHA256 ]; then
|
if [ $CI_RELEASE_SHA256 != $DOWNLOAD_SHA256 ]; then
|
||||||
echo "ERROR: Downloaded file didn't match expected SHA256 sum"
|
echo "ERROR: Downloaded file didn't match expected SHA256 sum"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
mv forgejo-*-linux-amd64 $2
|
mv forgejo-*-linux-arm64 $2
|
||||||
chmod +x $2
|
chmod +x $2
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
@ -302,7 +303,7 @@ case "$1" in
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
apt install forgejo$1
|
apt install forgejo$1
|
||||||
cp test-res/app.ini.modified /etc/forgejo/app.ini
|
cp test-res/app.ini.modified /etc/forgejo/app.ini
|
||||||
apt install ./forgejo$1_*_amd64.deb ./forgejo-common_*_all.deb
|
apt install ./forgejo$1_*_arm64.deb ./forgejo-common_*_all.deb
|
||||||
cat /etc/forgejo/app.ini
|
cat /etc/forgejo/app.ini
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -48,19 +48,19 @@ jobs:
|
||||||
cd forgejo
|
cd forgejo
|
||||||
git update-ref refs/heads/tag_test $(git rev-parse --verify HEAD)
|
git update-ref refs/heads/tag_test $(git rev-parse --verify HEAD)
|
||||||
|
|
||||||
- run: ./.ci-make.sh submodule-make forgejo security-check
|
# - run: ./.ci-make.sh submodule-make forgejo security-check
|
||||||
|
|
||||||
- run: ./.ci-make.sh submodule-make forgejo frontend
|
- run: ./.ci-make.sh submodule-make forgejo frontend
|
||||||
|
|
||||||
- run: ./.ci-make.sh submodule-make forgejo checks-backend
|
# - run: ./.ci-make.sh submodule-make forgejo checks-backend
|
||||||
|
|
||||||
- name: Download Forgejo binary
|
- name: Download Forgejo binary
|
||||||
run: ./.ci-make.sh download-binary forgejo-bin-dl
|
run: ./.ci-make.sh download-binary forgejo-bin-dl
|
||||||
|
|
||||||
- name: Build Forgejo for amd64
|
- name: Build Forgejo for arm64
|
||||||
run: ./.ci-make.sh submodule-build forgejo forgejo-bin
|
run: ./.ci-make.sh submodule-build forgejo forgejo-bin
|
||||||
|
|
||||||
- name: Build Forgejo (with SQLite) for amd64
|
- name: Build Forgejo (with SQLite) for arm64
|
||||||
run: ./.ci-make.sh submodule-build forgejo forgejo-sqlite-bin
|
run: ./.ci-make.sh submodule-build forgejo forgejo-sqlite-bin
|
||||||
env:
|
env:
|
||||||
TAGS: sqlite sqlite_unlock_notify
|
TAGS: sqlite sqlite_unlock_notify
|
||||||
|
@ -82,7 +82,7 @@ jobs:
|
||||||
./.ci-make.sh pkg-gen-sha256
|
./.ci-make.sh pkg-gen-sha256
|
||||||
./.ci-make.sh preview-sha256
|
./.ci-make.sh preview-sha256
|
||||||
|
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_arm64.deb
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -106,31 +106,31 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
|
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
|
||||||
|
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_arm64.deb
|
||||||
- run: ./.ci-make.sh full-instance-clean
|
- run: ./.ci-make.sh full-instance-clean
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo_*_arm64.deb
|
||||||
- run: ./.ci-make.sh full-instance-clean
|
- run: ./.ci-make.sh full-instance-clean
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo-bin_*_arm64.deb
|
||||||
- run: ./.ci-make.sh full-instance-clean
|
- run: ./.ci-make.sh full-instance-clean
|
||||||
- run: ./.ci-make.sh test-userinst-prep
|
- run: ./.ci-make.sh test-userinst-prep
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_arm64.deb
|
||||||
- run: ./.ci-make.sh full-instance-clean userinst
|
- run: ./.ci-make.sh full-instance-clean userinst
|
||||||
- run: ./.ci-make.sh test-userinst-prep
|
- run: ./.ci-make.sh test-userinst-prep
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo_*_arm64.deb
|
||||||
- run: ./.ci-make.sh full-instance-clean userinst
|
- run: ./.ci-make.sh full-instance-clean userinst
|
||||||
- run: ./.ci-make.sh test-userinst-prep
|
- run: ./.ci-make.sh test-userinst-prep
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo-bin_*_arm64.deb
|
||||||
- run: ./.ci-make.sh full-instance-clean userinst
|
- run: ./.ci-make.sh full-instance-clean userinst
|
||||||
- run: ./.ci-make.sh install-repo-test ./repo-deb/forgejo-deb-repo_0-0_all.deb forgejo-sqlite
|
- run: ./.ci-make.sh install-repo-test ./repo-deb/forgejo-deb-repo_0-0_all.deb forgejo-sqlite
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_arm64.deb
|
||||||
- run: ./.ci-make.sh verify-data-dir-chmod
|
- run: ./.ci-make.sh verify-data-dir-chmod
|
||||||
- run: ./.ci-make.sh full-instance-clean
|
- run: ./.ci-make.sh full-instance-clean
|
||||||
- run: ./.ci-make.sh install-repo-test ./repo-deb/forgejo-deb-repo_0-0_all.deb forgejo
|
- run: ./.ci-make.sh install-repo-test ./repo-deb/forgejo-deb-repo_0-0_all.deb forgejo
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo_*_arm64.deb
|
||||||
- run: ./.ci-make.sh verify-data-dir-chmod
|
- run: ./.ci-make.sh verify-data-dir-chmod
|
||||||
- run: ./.ci-make.sh full-instance-clean
|
- run: ./.ci-make.sh full-instance-clean
|
||||||
- run: ./.ci-make.sh install-repo-test ./repo-deb/forgejo-deb-repo_0-0_all.deb forgejo-bin
|
- run: ./.ci-make.sh install-repo-test ./repo-deb/forgejo-deb-repo_0-0_all.deb forgejo-bin
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo-bin_*_arm64.deb
|
||||||
- run: ./.ci-make.sh verify-data-dir-chmod
|
- run: ./.ci-make.sh verify-data-dir-chmod
|
||||||
- run: ./.ci-make.sh full-instance-clean
|
- run: ./.ci-make.sh full-instance-clean
|
||||||
- run: ./.ci-make.sh complex-test split-deb-upgrade -sqlite
|
- run: ./.ci-make.sh complex-test split-deb-upgrade -sqlite
|
||||||
|
@ -152,13 +152,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: forgejo-deb-${{steps.ciprep.outputs.artifactlabel }}
|
name: forgejo-deb-${{steps.ciprep.outputs.artifactlabel }}
|
||||||
|
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_arm64.deb
|
||||||
- run: ./.ci-make.sh force-clean-forgejo
|
- run: ./.ci-make.sh force-clean-forgejo
|
||||||
- run: ./.ci-make.sh full-instance-clean
|
- run: ./.ci-make.sh full-instance-clean
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo_*_arm64.deb
|
||||||
- run: ./.ci-make.sh force-clean-forgejo
|
- run: ./.ci-make.sh force-clean-forgejo
|
||||||
- run: ./.ci-make.sh full-instance-clean
|
- run: ./.ci-make.sh full-instance-clean
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo-bin_*_arm64.deb
|
||||||
- run: ./.ci-make.sh force-clean-forgejo
|
- run: ./.ci-make.sh force-clean-forgejo
|
||||||
- run: ./.ci-make.sh full-instance-clean
|
- run: ./.ci-make.sh full-instance-clean
|
||||||
|
|
||||||
|
@ -179,20 +179,18 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: forgejo-deb-${{steps.ciprep.outputs.artifactlabel }}
|
name: forgejo-deb-${{steps.ciprep.outputs.artifactlabel }}
|
||||||
|
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_arm64.deb
|
||||||
- run: ./.ci-make.sh force-clean-forgejo
|
- run: ./.ci-make.sh force-clean-forgejo
|
||||||
- run: ./.ci-make.sh full-instance-clean
|
- run: ./.ci-make.sh full-instance-clean
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo_*_arm64.deb
|
||||||
- run: ./.ci-make.sh force-clean-forgejo
|
- run: ./.ci-make.sh force-clean-forgejo
|
||||||
- run: ./.ci-make.sh full-instance-clean
|
- run: ./.ci-make.sh full-instance-clean
|
||||||
- run: ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb
|
- run: ./.ci-make.sh install-run-test ./forgejo-bin_*_arm64.deb
|
||||||
- run: ./.ci-make.sh force-clean-forgejo
|
- run: ./.ci-make.sh force-clean-forgejo
|
||||||
- run: ./.ci-make.sh full-instance-clean
|
- run: ./.ci-make.sh full-instance-clean
|
||||||
|
|
||||||
publish-release-repo:
|
publish:
|
||||||
runs-on: bookworm
|
runs-on: bookworm
|
||||||
needs: [multitest-bookworm-lxc, multitest-bullseye-docker, multitest-buster-docker]
|
|
||||||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && github.repository == 'forgejo-contrib/forgejo-deb'
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
@ -208,26 +206,12 @@ jobs:
|
||||||
- run: mkdir forgejo-release
|
- run: mkdir forgejo-release
|
||||||
- run: mv *.deb *.deb.sha256 forgejo-release/
|
- run: mv *.deb *.deb.sha256 forgejo-release/
|
||||||
|
|
||||||
- uses: actions/forgejo-release@v1
|
|
||||||
with:
|
|
||||||
direction: upload
|
|
||||||
url: https://codeberg.org
|
|
||||||
token: ${{ secrets.codeberg_api_key }}
|
|
||||||
release-dir: forgejo-release
|
|
||||||
|
|
||||||
- uses: actions/forgejo-release@v1
|
|
||||||
with:
|
|
||||||
direction: upload
|
|
||||||
url: https://code.forgejo.org
|
|
||||||
token: ${{ secrets.cfo_api_key }}
|
|
||||||
release-dir: forgejo-release
|
|
||||||
|
|
||||||
- name: Debian package registry publish
|
- name: Debian package registry publish
|
||||||
env:
|
env:
|
||||||
FORGEJO_SITE: https://code.forgejo.org
|
FORGEJO_SITE: https://git.alexjanka.com
|
||||||
FORGEJO_OWNER: forgejo-contrib
|
FORGEJO_OWNER: alex
|
||||||
DEBIAN_DIST: bullseye
|
DEBIAN_DIST: testing
|
||||||
DEBIAN_COMPONENT: forgejo-lts
|
DEBIAN_COMPONENT: main
|
||||||
FORGEJO_KEY: ${{ secrets.cfo_api_key }}
|
FORGEJO_KEY: ${{ secrets.cfo_api_key }}
|
||||||
run: |
|
run: |
|
||||||
cd forgejo-release
|
cd forgejo-release
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Package: forgejo-bin
|
Package: forgejo-bin
|
||||||
Architecture: amd64
|
Architecture: arm64
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Provides: forgejo, gitea
|
Provides: forgejo, gitea
|
||||||
Depends: adduser (>= 3.11), git
|
Depends: adduser (>= 3.11), git
|
||||||
|
|
|
@ -5,7 +5,7 @@ Maintainer: crystal <crystal@noreply.codeberg.org>
|
||||||
Build-Depends: debhelper (>= 10)
|
Build-Depends: debhelper (>= 10)
|
||||||
|
|
||||||
Package: forgejo
|
Package: forgejo
|
||||||
Architecture: amd64
|
Architecture: arm64
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Provides: gitea
|
Provides: gitea
|
||||||
Depends: forgejo-common (= ${source:Version}), adduser (>= 3.11), git
|
Depends: forgejo-common (= ${source:Version}), adduser (>= 3.11), git
|
||||||
|
@ -14,7 +14,7 @@ Description: Forgejo: Beyond Coding. We Forge.
|
||||||
Forgejo with bindata ONLY - Use this package for MySQL or PostgreSQL setup
|
Forgejo with bindata ONLY - Use this package for MySQL or PostgreSQL setup
|
||||||
|
|
||||||
Package: forgejo-sqlite
|
Package: forgejo-sqlite
|
||||||
Architecture: amd64
|
Architecture: arm64
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Provides: forgejo, gitea
|
Provides: forgejo, gitea
|
||||||
Depends: forgejo-common (= ${source:Version}), adduser (>= 3.11), git
|
Depends: forgejo-common (= ${source:Version}), adduser (>= 3.11), git
|
||||||
|
|
Loading…
Add table
Reference in a new issue