Skip to content

Commit

Permalink
Merge pull request #51 from bluca/ci
Browse files Browse the repository at this point in the history
Problem: want to use OBS workflow and GH Actions
  • Loading branch information
bluca authored Apr 17, 2022
2 parents f08649f + 72a43d9 commit fce8760
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 32 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI
on:
push:
pull_request:


jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
BUILD_TYPE: default
PACKAGES: libpcre3-dev
env:
# Set CI_TIME: true to enable build-step profiling
# Set CI_TRACE: true to enable shell script tracing
# Set CI_CONFIG_QUIET: true to enable "configure --quiet" (only report stderr)
# Set CI_REQUIRE_GOOD_GITIGNORE: false to NOT fail if "git status -s" is not clean
# Set CI_REQUIRE_GOOD_CLANG_FORMAT: true to fail if "clang-format" check is not clean
CI_TIME: false
CI_TRACE: false
CI_CONFIG_QUIET: true
CI_REQUIRE_GOOD_GITIGNORE: false
platform: ${{ matrix.platform }}
configuration: ${{ matrix.configuration }}
BUILD_TYPE: ${{ matrix.BUILD_TYPE }}
steps:
- uses: actions/checkout@v2
with:
path: gsl
- name: build
shell: bash
working-directory: gsl
run: ./ci_build.sh
28 changes: 28 additions & 0 deletions .obs/workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
pull_request:
steps:
- branch_package:
source_project: network:messaging:zeromq:git-draft
source_package: generator-scripting-language
target_project: network:messaging:zeromq:ci
filters:
event: pull_request
merge:
steps:
- trigger_services:
project: network:messaging:zeromq:git-stable
package: generator-scripting-language
filters:
event: push
branches:
only:
- master
release:
steps:
- trigger_services:
project: network:messaging:zeromq:release-stable
package: generator-scripting-language
- trigger_services:
project: network:messaging:zeromq:release-draft
package: generator-scripting-language
filters:
event: tag_push
6 changes: 3 additions & 3 deletions packaging/linux/rpm/SPECS/generator-scripting-language.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Summary: imatix GSL is a code construction tool
Name: generator-scripting-language
Version: 4.1.5
Release: %{revision}%{?dist}
License: GPL v3+
License: GPL-3.0-or-later
Group: Libraries
Source0: http://download.zeromq.org/gsl-%{version}.tar.gz
Source0: http://download.zeromq.org/%{name}-%{version}.tar.gz
URL: http://zeromq.org/
BuildRequires: pcre-devel

Expand All @@ -22,7 +22,7 @@ to generate database schema definitions, user interfaces, reports, system
administration tools and much more.

%prep
%setup -q -n gsl-%{version}
%setup -q -n %{name}-%{version}
%build
make %{?_smp_mflags}
%install
Expand Down
50 changes: 21 additions & 29 deletions packaging/obs/_service
Original file line number Diff line number Diff line change
@@ -1,82 +1,74 @@
<services>
<service name="tar_scm">
<param name="url">https://github.com/bluca/gsl</param>
<param name="revision">packaging</param>
<service name="obs_scm">
<param name="url">https://github.com/zeromq/gsl</param>
<param name="scm">git</param>
<param name="revision">master</param>
<!--<param name="versionformat">@PARENT_TAG@+git%cd</param>-->
<!-- extract redhat packaging -->
<param name="changesgenerate">enable</param>
<param name="filename">generator-scripting-language</param>
<param name="extract">packaging/linux/rpm/SPECS/generator-scripting-language.spec</param>
<param name="extract">packaging/debian/generator-scripting-language.dsc</param>
</service>

<!-- extract redhat packaging -->
<service name="extract_file">
<param name="archive">*.tar</param>
<param name="files">*/packaging/linux/rpm/SPECS/generator-scripting-language.spec</param>
<param name="outfilename">generator-scripting-language.spec</param>
</service>
<service name="tar" mode="buildtime"/>

<!-- extract debian packaging -->
<service name="extract_file">
<param name="archive">*.tar</param>
<param name="files">*/packaging/debian/generator-scripting-language.dsc.obs</param>
<param name="outfilename">generator-scripting-language.dsc</param>
</service>
<service name="extract_file">
<service name="extract_file" mode="buildtime">
<param name="archive">*.tar</param>
<param name="files">*/packaging/debian/changelog</param>
<param name="files">*/packaging/debian/changelog</param>
<param name="outfilename">debian.changelog</param>
</service>
<service name="extract_file">
<service name="extract_file" mode="buildtime">
<param name="archive">*.tar</param>
<param name="files">*/packaging/debian/compat</param>
<param name="outfilename">debian.compat</param>
</service>
<service name="extract_file">
<service name="extract_file" mode="buildtime">
<param name="archive">*.tar</param>
<param name="files">*/packaging/debian/control</param>
<param name="outfilename">debian.control</param>
</service>
<service name="extract_file">
<service name="extract_file" mode="buildtime">
<param name="archive">*.tar</param>
<param name="files">*/packaging/debian/copyright</param>
<param name="outfilename">debian.copyright</param>
</service>
<service name="extract_file">
<service name="extract_file" mode="buildtime">
<param name="archive">*.tar</param>
<param name="files">*/packaging/debian/generator-scripting-language.install</param>
<param name="outfilename">debian.generator-scripting-language.install</param>
</service>
<service name="extract_file">
<service name="extract_file" mode="buildtime">
<param name="archive">*.tar</param>
<param name="files">*/packaging/debian/generator-scripting-language.docs</param>
<param name="outfilename">debian.generator-scripting-language.docs</param>
</service>
<service name="extract_file">
<service name="extract_file" mode="buildtime">
<param name="archive">*.tar</param>
<param name="files">*/packaging/debian/generator-scripting-language-examples.install</param>
<param name="outfilename">debian.generator-scripting-language-examples.install</param>
</service>
<service name="extract_file">
<service name="extract_file" mode="buildtime">
<param name="archive">*.tar</param>
<param name="files">*/packaging/debian/generator-scripting-language-examples.manpages</param>
<param name="outfilename">debian.generator-scripting-language-examples.manpages</param>
</service>
<service name="extract_file">
<service name="extract_file" mode="buildtime">
<param name="archive">*.tar</param>
<param name="files">*/packaging/debian/source/format</param>
<param name="outfilename">debian.format</param>
</service>
<service name="extract_file">
<service name="extract_file" mode="buildtime">
<param name="archive">*.tar</param>
<param name="files">*/packaging/debian/rules</param>
<param name="outfilename">debian.rules</param>
</service>

<service name="set_version">
<param name="basename">gsl</param>
<service name="set_version" mode="buildtime">
<param name="basename">generator-scripting-language</param>
</service>

<service name="recompress">
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
Expand Down

0 comments on commit fce8760

Please sign in to comment.