2024-04-28 12:52:24 +10:00
|
|
|
on: [push, pull_request]
|
2024-04-28 10:55:53 +10:00
|
|
|
jobs:
|
|
|
|
build-forgejo-deb:
|
|
|
|
runs-on: bullseye
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
2024-05-02 09:58:21 +10:00
|
|
|
fetch-depth: 0
|
|
|
|
fetch-tags: true
|
|
|
|
filter: tree:0
|
2024-04-28 10:55:53 +10:00
|
|
|
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 20
|
|
|
|
|
|
|
|
- uses: actions/setup-go@v4
|
|
|
|
with:
|
|
|
|
go-version: "1.22"
|
|
|
|
check-latest: true
|
|
|
|
|
|
|
|
- name: "actions prep: build-forgejo-deb"
|
|
|
|
id: ciprep
|
|
|
|
run: ./.ci-make.sh actions-prep build-forgejo-deb
|
|
|
|
|
|
|
|
- uses: crystal/install-jq-action@v2.1.0
|
|
|
|
- run: ./.ci-make.sh ci-verify forgejo
|
|
|
|
|
|
|
|
- run: ./.ci-make.sh submodule-make forgejo deps-frontend
|
|
|
|
- run: ./.ci-make.sh submodule-make forgejo deps-backend
|
|
|
|
|
|
|
|
- name: tag pre-condition
|
|
|
|
run: |
|
|
|
|
cd forgejo
|
|
|
|
git update-ref refs/heads/tag_test $(git rev-parse --verify HEAD)
|
|
|
|
|
|
|
|
- run: ./.ci-make.sh submodule-make forgejo security-check
|
2024-06-15 12:00:52 +10:00
|
|
|
|
2024-04-28 10:55:53 +10:00
|
|
|
- run: ./.ci-make.sh submodule-make forgejo frontend
|
|
|
|
|
|
|
|
- run: ./.ci-make.sh submodule-make forgejo checks-backend
|
|
|
|
|
|
|
|
- name: Download Forgejo binary
|
|
|
|
run: ./.ci-make.sh download-binary forgejo-bin-dl
|
|
|
|
|
2024-06-15 11:52:44 +10:00
|
|
|
- name: Build Forgejo for arm64
|
2024-04-28 10:55:53 +10:00
|
|
|
run: ./.ci-make.sh submodule-build forgejo forgejo-bin
|
|
|
|
|
2024-06-15 11:52:44 +10:00
|
|
|
- name: Build Forgejo (with SQLite) for arm64
|
2024-04-28 10:55:53 +10:00
|
|
|
run: ./.ci-make.sh submodule-build forgejo forgejo-sqlite-bin
|
|
|
|
env:
|
2024-04-29 20:30:06 +10:00
|
|
|
TAGS: sqlite sqlite_unlock_notify
|
2024-04-28 10:55:53 +10:00
|
|
|
|
|
|
|
- run: ./.ci-make.sh package-prep
|
|
|
|
- run: ./.ci-make.sh package-build-deps
|
|
|
|
|
|
|
|
- run: ./.ci-make.sh package-build actions
|
|
|
|
|
|
|
|
- run: ./.ci-make.sh package-clean
|
|
|
|
|
|
|
|
- name: build repo package
|
|
|
|
run: |
|
|
|
|
cd repo-deb
|
|
|
|
./build.sh actions
|
|
|
|
|
|
|
|
- name: generate sha256
|
|
|
|
run: |
|
|
|
|
./.ci-make.sh pkg-gen-sha256
|
|
|
|
./.ci-make.sh preview-sha256
|
|
|
|
|
2024-06-15 11:52:44 +10:00
|
|
|
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_arm64.deb
|
2024-04-28 10:55:53 +10:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
|
|
|
|
path: |
|
|
|
|
*.deb
|
|
|
|
*.deb.sha256
|
|
|
|
repo-deb/*.deb
|
|
|
|
|
|
|
|
installtest-bookworm-sqlite:
|
|
|
|
runs-on: bookworm
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-06-15 12:00:52 +10:00
|
|
|
|
2024-04-28 10:55:53 +10:00
|
|
|
- name: "actions prep: installtest"
|
|
|
|
id: ciprep
|
|
|
|
run: ./.ci-make.sh actions-prep installtest
|
|
|
|
|
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
|
|
|
|
|
2024-06-15 11:52:44 +10:00
|
|
|
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_arm64.deb
|
2024-04-28 10:55:53 +10:00
|
|
|
|
|
|
|
installtest-bullseye-sqlite:
|
|
|
|
runs-on: bullseye
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: "actions prep: installtest"
|
|
|
|
id: ciprep
|
|
|
|
run: ./.ci-make.sh actions-prep installtest
|
2024-06-15 12:00:52 +10:00
|
|
|
|
2024-04-28 10:55:53 +10:00
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
|
|
|
|
|
2024-06-15 11:52:44 +10:00
|
|
|
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_arm64.deb
|
2024-04-28 10:55:53 +10:00
|
|
|
|
|
|
|
installtest-buster-sqlite:
|
|
|
|
runs-on: buster
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-06-15 12:00:52 +10:00
|
|
|
|
2024-04-28 10:55:53 +10:00
|
|
|
- name: "actions prep: installtest"
|
|
|
|
id: ciprep
|
|
|
|
run: ./.ci-make.sh actions-prep installtest
|
|
|
|
|
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
|
|
|
|
|
2024-06-15 11:52:44 +10:00
|
|
|
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_arm64.deb
|
2024-04-28 10:55:53 +10:00
|
|
|
|
|
|
|
installtest-bookworm-user:
|
|
|
|
runs-on: bookworm
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: "actions prep: installtest"
|
|
|
|
id: ciprep
|
|
|
|
run: ./.ci-make.sh actions-prep installtest
|
|
|
|
|
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
|
|
|
|
|
|
|
|
- run: ./.ci-make.sh test-userinst-prep
|
2024-06-15 11:52:44 +10:00
|
|
|
- run: ./.ci-make.sh install-run-test ./forgejo_*_arm64.deb
|
2024-04-28 10:55:53 +10:00
|
|
|
|
|
|
|
testsuite-repo-upgrade-sqlite:
|
|
|
|
runs-on: bookworm
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: "actions prep: installtest"
|
|
|
|
id: ciprep
|
|
|
|
run: ./.ci-make.sh actions-prep installtest
|
|
|
|
|
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
|
|
|
|
|
|
|
|
- run: ./.ci-make.sh install-repo-test ./repo-deb/forgejo-deb-repo_0-0_all.deb forgejo-sqlite
|
|
|
|
- run: ./.ci-make.sh force-clean-forgejo
|
2024-06-15 11:52:44 +10:00
|
|
|
- run: ./.ci-make.sh install-run-test ./forgejo-sqlite_*_arm64.deb
|
2024-04-28 10:55:53 +10:00
|
|
|
- run: ./.ci-make.sh verify-data-dir-chmod
|
|
|
|
|
|
|
|
installtest-buster-bin:
|
|
|
|
runs-on: buster
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: "actions prep: installtest"
|
|
|
|
id: ciprep
|
|
|
|
run: ./.ci-make.sh actions-prep installtest
|
|
|
|
|
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
|
|
|
|
|
2024-06-15 11:52:44 +10:00
|
|
|
- run: ./.ci-make.sh install-run-test ./forgejo-bin_*_arm64.deb
|
2024-04-28 10:55:53 +10:00
|
|
|
|
|
|
|
publish-release-repo:
|
|
|
|
runs-on: bookworm
|
2024-04-29 00:18:23 +10:00
|
|
|
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && github.repository == 'forgejo-contrib/forgejo-deb'
|
2024-04-28 10:55:53 +10:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: actions prep
|
|
|
|
id: ciprep
|
|
|
|
run: ./.ci-make.sh actions-prep
|
|
|
|
|
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
|
|
|
|
|
|
|
|
- uses: crystal/install-jq-action@v2.1.0
|
|
|
|
- run: mkdir forgejo-release
|
|
|
|
- run: mv *.deb *.deb.sha256 forgejo-release/
|
2024-06-15 12:00:52 +10:00
|
|
|
|
2024-04-28 10:55:53 +10:00
|
|
|
- uses: actions/forgejo-release@v1
|
|
|
|
with:
|
|
|
|
direction: upload
|
|
|
|
url: https://codeberg.org
|
|
|
|
token: ${{ secrets.codeberg_api_key }}
|
|
|
|
release-dir: forgejo-release
|
|
|
|
|
2024-04-28 15:42:48 +10:00
|
|
|
- uses: actions/forgejo-release@v1
|
|
|
|
with:
|
|
|
|
direction: upload
|
|
|
|
url: https://code.forgejo.org
|
|
|
|
token: ${{ secrets.cfo_api_key }}
|
|
|
|
release-dir: forgejo-release
|
|
|
|
|
2024-04-28 10:55:53 +10:00
|
|
|
- name: Debian package registry publish
|
|
|
|
env:
|
|
|
|
FORGEJO_SITE: https://code.forgejo.org
|
|
|
|
FORGEJO_OWNER: forgejo-contrib
|
|
|
|
DEBIAN_DIST: bullseye
|
|
|
|
DEBIAN_COMPONENT: forgejo-lts
|
|
|
|
FORGEJO_KEY: ${{ secrets.cfo_api_key }}
|
|
|
|
run: |
|
|
|
|
cd forgejo-release
|
|
|
|
../.ci-forgejo-apt.sh *.deb
|
|
|
|
cd ..
|