Skip to content

Commit ee18011

Browse files
authored
Merge pull request #3333 from eseiler/infra/debian
[INFRA] Debian cron
2 parents 4ed1ce8 + 363c4cf commit ee18011

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

.github/workflows/cron_debian.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
2+
# SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
name: Debian
6+
7+
on:
8+
schedule:
9+
- cron: "0 1 * * THU"
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: debian-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
env:
17+
TZ: Europe/Berlin
18+
19+
defaults:
20+
run:
21+
shell: bash -Eeuxo pipefail {0}
22+
23+
jobs:
24+
build:
25+
name: Debian
26+
runs-on: ubuntu-latest
27+
if: github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch'
28+
container:
29+
image: debian:unstable
30+
steps:
31+
- name: Install Essentials
32+
run: |
33+
apt-get update
34+
apt-get install --yes --no-install-recommends build-essential git cmake wget fakeroot ca-certificates
35+
36+
- name: Setup Repo
37+
run: |
38+
mkdir unstable && cd unstable
39+
git clone --depth 1 https://github.com/seqan/seqan3.git
40+
cd seqan3/
41+
git remote add salsa https://salsa.debian.org/med-team/seqan3.git
42+
git fetch --depth 1 salsa
43+
git checkout salsa/debian/experimental -- debian
44+
45+
- name: Reduce Noise
46+
working-directory: unstable/seqan3
47+
run: |
48+
if [[ -f test/cmake/seqan3_require_ccache.cmake ]]; then
49+
echo "" > test/cmake/seqan3_require_ccache.cmake
50+
fi
51+
if [[ -f test/documentation/seqan3_doxygen_cfg.in ]]; then
52+
sed -i 's@^\(QUIET\s*=\) NO@\1 YES@' test/documentation/seqan3_doxygen_cfg.in
53+
fi
54+
55+
- name: Install Dependencies
56+
working-directory: unstable/seqan3
57+
run: apt-get build-dep --yes --no-install-recommends .
58+
59+
- name: Build
60+
working-directory: unstable/seqan3
61+
run: dpkg-buildpackage --unsigned-changes --unsigned-source --build=binary
62+
63+
- name: Upload Artifacts
64+
if: always()
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: debian-seqan3-artifacts
68+
path: |
69+
unstable/**/seqan3*.deb
70+
unstable/**/libseqan3*.deb
71+
unstable/**/seqan3*.changes
72+
unstable/**/seqan3*.buildinfo

0 commit comments

Comments
 (0)