Skip to content

Commit

Permalink
ci: build packages for Debian 11 and 12, too
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel committed Feb 27, 2024
1 parent 92e5a17 commit d2a3513
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/package_debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build Debian packages

on:
push:
tags:
- v*

jobs:
package:
strategy:
fail-fast: false
matrix:
include:
- image: 'debian:11'
pack-name: 'debian_11'
- image: 'debian:12'
pack-name: 'debian_12'
runs-on: ubuntu-22.04
container: ${{ matrix.image }}
steps:
- name: Install Debian packages
run: |
apt-get update && apt-get upgrade -y
apt-get install -y --no-install-recommends build-essential bzip2 ca-certificates debhelper devscripts fakeroot g++ git lsb-release tar wget
apt-get install -y --no-install-recommends catch cmake g++ libgl-dev libglfw3-dev libwebp-dev pkg-config
# Checks-out the repository under $GITHUB_WORKSPACE.
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Prepare Git repository
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git fetch --force --tags
- name: Build package
run: |
export CXX=g++
export CC=gcc
cd "$GITHUB_WORKSPACE"
./ci/02-create-package.sh
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: package-${{ matrix.pack-name }}
path: webp*.deb

0 comments on commit d2a3513

Please sign in to comment.