run on tag + remove unused sqlite

This commit is contained in:
Alex Janka 2024-06-15 13:02:06 +10:00
parent ea1fde19e7
commit 252eb37f7d

View file

@ -1,4 +1,8 @@
on: [push, pull_request] on:
push:
tags:
- "*"
jobs: jobs:
build-forgejo-deb: build-forgejo-deb:
runs-on: bookworm runs-on: bookworm
@ -46,11 +50,6 @@ jobs:
- name: Build Forgejo for arm64 - 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 arm64
run: ./.ci-make.sh submodule-build forgejo forgejo-sqlite-bin
env:
TAGS: sqlite sqlite_unlock_notify
- run: ./.ci-make.sh package-prep - run: ./.ci-make.sh package-prep
- run: ./.ci-make.sh package-build-deps - run: ./.ci-make.sh package-build-deps
@ -63,8 +62,6 @@ 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_*_arm64.deb
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }} name: forgejo-deb-${{ steps.ciprep.outputs.artifactlabel }}
@ -72,21 +69,6 @@ jobs:
*.deb *.deb
*.deb.sha256 *.deb.sha256
installtest-bookworm-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-run-test ./forgejo-sqlite_*_arm64.deb
installtest-bookworm-user: installtest-bookworm-user:
runs-on: bookworm runs-on: bookworm
steps: steps:
@ -105,7 +87,6 @@ jobs:
publish-release-repo: publish-release-repo:
runs-on: bookworm runs-on: bookworm
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4