Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INFRA] Debian cron #3333

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/workflows/cron_debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
# SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
# SPDX-License-Identifier: CC0-1.0

name: Debian

on:
schedule:
- cron: "0 1 * * THU"
workflow_dispatch:

concurrency:
group: debian-${{ github.ref }}
cancel-in-progress: true

env:
TZ: Europe/Berlin

defaults:
run:
shell: bash -Eeuxo pipefail {0}

jobs:
build:
name: Debian
runs-on: ubuntu-latest
if: github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch'
container:
image: debian:unstable
steps:
- name: Install Essentials
run: |
apt-get update
apt-get install --yes --no-install-recommends build-essential git cmake wget fakeroot ca-certificates

- name: Setup Repo
run: |
mkdir unstable && cd unstable
git clone --depth 1 https://github.com/seqan/seqan3.git
cd seqan3/
git remote add salsa https://salsa.debian.org/med-team/seqan3.git
git fetch --depth 1 salsa
git checkout salsa/debian/experimental -- debian

- name: Reduce Noise
working-directory: unstable/seqan3
run: |
if [[ -f test/cmake/seqan3_require_ccache.cmake ]]; then
echo "" > test/cmake/seqan3_require_ccache.cmake
fi
if [[ -f test/documentation/seqan3_doxygen_cfg.in ]]; then
sed -i 's@^\(QUIET\s*=\) NO@\1 YES@' test/documentation/seqan3_doxygen_cfg.in
fi

- name: Install Dependencies
working-directory: unstable/seqan3
run: apt-get build-dep --yes --no-install-recommends .

- name: Build
working-directory: unstable/seqan3
run: dpkg-buildpackage --unsigned-changes --unsigned-source --build=binary

- name: Upload Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: debian-seqan3-artifacts
path: |
unstable/**/seqan3*.deb
unstable/**/libseqan3*.deb
unstable/**/seqan3*.changes
unstable/**/seqan3*.buildinfo