Skip to content

Commit

Permalink
chore(CI): add OBS workflows
Browse files Browse the repository at this point in the history
add OBS workflows and modify PKGBUILD support OBS build

log:
  • Loading branch information
tsic404 authored and BLumia committed Mar 30, 2023
1 parent f88babb commit 6b3b48b
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 5 deletions.
51 changes: 51 additions & 0 deletions .obs/workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
test_build:
steps:
- link_package:
source_project: deepin:Develop:dde
source_package: %{SCM_REPOSITORY_NAME}
target_project: deepin:CI

- configure_repositories:
project: deepin:CI
repositories:
- name: deepin_develop
paths:
- target_project: deepin:CI
target_repository: deepin_develop
architectures:
- x86_64
- aarch64

- name: debian
paths:
- target_project: deepin:CI
target_repository: debian_sid
architectures:
- x86_64

- name: archlinux
paths:
- target_project: deepin:CI
target_repository: archlinux
architectures:
- x86_64

filters:
event: pull_request

tag_build:
steps:
- branch_package:
source_project: deepin:Develop:dde
source_package: %{SCM_REPOSITORY_NAME}
target_project: deepin:Unstable:dde
filters:
event: tag_push

commit_build:
steps:
- trigger_services:
project: deepin:Develop:dde
package: %{SCM_REPOSITORY_NAME}
filters:
event: push
2 changes: 1 addition & 1 deletion .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Upstream-Contact: UnionTech Software Technology Co., Ltd. <>
Source: https://github.com/linuxdeepin/deepin-movie-reborn

# ci
Files: .github/*
Files: .github/* .obs/workflows.yml
Copyright: None
License: CC0-1.0

Expand Down
11 changes: 7 additions & 4 deletions archlinux/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
pkgname=deepin-movie-git
pkgver=5.9.8.r48.g225c49e9
pkgrel=1
sourcename=deepin-movie-reborn
sourcedir="$sourcename"
sourcetars=("$sourcename"_"$pkgver".tar.xz)
pkgdesc='Movie player based on mpv'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/deepin-movie-reborn"
Expand All @@ -12,21 +15,21 @@ provides=('deepin-movie')
conflicts=('deepin-movie')
groups=('deepin-extra-git')
options=('!lto')
source=("source.tar.gz")
source=("${sourcetars[@]}")
sha512sums=('SKIP')

prepare() {
cd $deepin_source_name
cd $sourcedir
}

build() {
cd $deepin_source_name
cd $sourcedir
export CXXFLAGS+=' -fpermissive'
cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release .
ninja
}

package() {
cd $deepin_source_name
cd $sourcedir
DESTDIR="$pkgdir" ninja install
}

0 comments on commit 6b3b48b

Please sign in to comment.