-
Notifications
You must be signed in to change notification settings - Fork 2
78 lines (73 loc) · 2.62 KB
/
packaging.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# GitHub Actions Scripts
# Copyright (C) 2021-2024 by Thomas Dreibholz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Contact: dreibh@simula.no
name: Packaging CI Tests
on:
push:
branches:
- master
- dreibh/github-actions
jobs:
# ====== Ubuntu Linux =====================================================
ubuntu-packaging:
name: Ubuntu Packaging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Packaging
shell: bash
run: |
sudo CC=gcc CXX=g++ OS=ubuntu DIST=focal ARCH= ci/ci-setup package
sudo CC=gcc CXX=g++ OS=ubuntu DIST=focal ARCH= ci/ci-install package
sudo CC=gcc CXX=g++ OS=ubuntu DIST=focal ARCH= ci/ci-build package
sudo ci/ci-test
# ====== Debian Linux =====================================================
debian-packaging:
name: Debian Packaging
runs-on: ubuntu-latest
container:
image: debian:unstable
options: "--privileged"
steps:
- uses: actions/checkout@v4
- name: Packaging
shell: bash
# NOTE: The Debian container has no "sudo". It is necessary to install
# it first, for the scripts to work.
run: |
apt-get update -q
DEBIAN_FRONTEND=noninteractive apt-get install -qqy sudo
CC=gcc CXX=g++ OS=debian DIST=unstable ARCH= ci/ci-setup package
CC=gcc CXX=g++ OS=debian DIST=unstable ARCH= ci/ci-install package
CC=gcc CXX=g++ OS=debian DIST=unstable ARCH= ci/ci-build package
ci/ci-test
# ====== Fedora Linux =====================================================
fedora-packaging:
name: Fedora Packaging
runs-on: ubuntu-latest
container:
image: fedora:latest
options: "--privileged"
steps:
- uses: actions/checkout@v4
- name: Packaging
shell: bash
run: |
CC=clang CXX=clang++ ARCH= ci/ci-setup package
CC=clang CXX=clang++ ARCH= ci/ci-install package
CC=clang CXX=clang++ ARCH= ci/ci-build package
ci/ci-test