Skip to content

Commit

Permalink
feat: Added auto CI build on OBS (#13)
Browse files Browse the repository at this point in the history
* feat: Added auto CI build on OBS

* Update Auto CI Test Build.yml

* Update Auto CI Test Build.yml

* Update changelog
  • Loading branch information
elysia-best authored Dec 13, 2024
1 parent b6b0cab commit 466dbae
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .github/workflows/Auto CI Test Build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Auto CI Test Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
debian:
name: Debian 13 Trixie
runs-on: ubuntu-latest
container: docker.io/library/debian:trixie
steps:
- name: Install Dependencies
run: |
apt-get update
apt-get install -y sudo git
- name: Checkout Source
uses: actions/checkout@v3

- name: Init Git Repo
run: |
git config --global --add safe.directory $(realpath .)
- name: Build Debian Src Package
uses: LingmoOS/[email protected]
with:
build-binary: false
build-source: true
output-dir: ./debian-deb-output
source-dir: ./

- uses: actions/upload-artifact@v4
with:
name: Source DEB Artifacts
path: debian-deb-output
compression-level: 9 # maximum compression

- name: Upload to OBS
if: ${{ !(github.event_name == 'pull_request') }}
uses: LingmoOS/[email protected]
with:
remove-old-sources: true
obs-package-name: 'liblingmo'
obs-project-name: 'home:elysia:LingmoOS:CI'
obs-user-name: ${{ secrets.OBS_CI_USERNAME }}
obs-password: ${{ secrets.OBS_CI_TOKEN }}
obs-instance-url: 'https://api.opensuse.org'
local-package-dir: './debian-deb-output'
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
liblingmo (2.0.0-1~dev1) UNRELEASED; urgency=high
liblingmo (2.0.1) UNRELEASED; urgency=high

* Migrated to Qt6 and C++ 17 (Elysia) <[email protected]>

Expand Down

0 comments on commit 466dbae

Please sign in to comment.