-
Notifications
You must be signed in to change notification settings - Fork 59
98 lines (80 loc) · 2.69 KB
/
main.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: "E.L.B.E. test runner"
# Controls when the action will run. Triggers the workflow on push or pull
# request events but only for the master branch
on:
workflow_dispatch: {}
push:
branches:
- master
- 'devel/**'
pull_request:
branches:
- master
- 'devel/**'
# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel
jobs:
Build-for-stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build E.L.B.E. Debian stable packages
uses: jtdor/[email protected]
with:
docker-image: debian:stable-slim
artifacts-dir: stable
- name: Retrieve results
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: stable
path: |
stable/
if-no-files-found: warn
Build-for-unstable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build E.L.B.E. Debian stable packages
uses: jtdor/[email protected]
with:
docker-image: debian:unstable-slim
artifacts-dir: unstable
- name: Retrieve results
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: unstable
path: |
unstable/
if-no-files-found: warn
Run-on-Ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install tools
run: sudo apt-get install -y config-package-dev devscripts git-buildpackage lighttpd reprepro
- name: Create build environment
run: ARCH="$(dpkg-architecture -q DEB_BUILD_ARCH)" DIST="$(. /etc/os-release; echo ${VERSION_CODENAME/*, /})" git-pbuilder create
- name: Build E.L.B.E. packages
run: gbp buildpackage -nc --git-debian-branch="$(git branch --show-current)" --git-pbuilder --git-dist="$(. /etc/os-release; echo ${VERSION_CODENAME/*, /})" --git-arch="$(dpkg-architecture -q DEB_BUILD_ARCH)"
- name: Build configuration package
run: cd contrib/debathena-transform-lighttpd; ARCH="$(dpkg-architecture -q DEB_BUILD_ARCH)" DIST="$(. /etc/os-release; echo ${VERSION_CODENAME/*, /})" git-pbuilder -nc
- name: Build Repo
run: ./.github/scripts/setup_repo.sh
- name: Retrieve results
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: repo
path: |
repo/
if-no-files-found: warn
- name: Prepare to use Repo
run: sudo ./.github/scripts/update_sources_list.sh
- name: Install E.L.B.E.
run: sudo apt-get install -y elbe
- name: Show E.L.B.E. version
run: elbe --version
- name: Install all E.L.B.E. packages
run: sudo ./.github/scripts/install_all.sh