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

CI: test debian package build #3525

Draft
wants to merge 1 commit into
base: latest
Choose a base branch
from
Draft
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
65 changes: 65 additions & 0 deletions .github/workflows/debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Based on seqan3 CI:
# - https://github.com/seqan/seqan3/pull/3333
# Copyright from original workflow:
# 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"
pull_request:
workflow_dispatch:

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

env:
TZ: America/Los_Angeles

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

jobs:
build:
name: Debian
runs-on: ubuntu-latest
if: github.repository_owner == 'sourmash-bio' || 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/sourmash-bio/sourmash.git
cd sourmash/
git remote add salsa https://salsa.debian.org/med-team/sourmash.git
git fetch --depth 1 salsa
git checkout salsa/master -- debian

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

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

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