Skip to content

Commit

Permalink
ci: create Debian packages on GHA, too
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel committed Jul 29, 2023
1 parent ff66fa5 commit 39d244c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
gcc:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
version: [9, 10, 11, 12]
steps:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Debian package

#on:
# push:
# tags:
# - v*

on: push

jobs:
package:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, ubuntu-22.04 ]
runs-on: ${{ matrix.os }}
steps:
# Checks-out the repository under $GITHUB_WORKSPACE.
- name: Git checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Debian packages
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends build-essential bzip2 ca-certificates debhelper devscripts fakeroot g++ git lsb-release tar wget
sudo apt-get install -y --no-install-recommends catch cmake g++ libgl-dev libglfw3-dev libwebp-dev pkg-config
- name: Build package
run: |
export CXX=g++
export CC=gcc
cd "$GITHUB_WORKSPACE"
./ci/02-create-package.sh
pwd
ls -lah
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: package-${{ matrix.os }}
path: webp*.deb

0 comments on commit 39d244c

Please sign in to comment.