-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.12 KB
/
package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Debian packages
on:
push:
tags:
- v*
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@v4
with:
fetch-depth: 0
- name: Force-fetch Git tags
run: git fetch --force --tags
- 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