-
Notifications
You must be signed in to change notification settings - Fork 6
58 lines (54 loc) · 1.83 KB
/
git.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
name: Git builds
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# Only trigger manually
on: [push, workflow_dispatch]
jobs:
debian:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: build Debian package
run: |
sudo apt install debhelper-compat python3 python3-markdown python3-markupsafe python3-jinja2 sharutils
cp -r distros/debian .
make debian
- name: upload
uses: actions/upload-artifact@v3
with:
path: shutorial_*_all.deb
name: debian_package
arch:
runs-on: ubuntu-latest
container:
image: carlodepieri/docker-archlinux-systemd
options: --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro
steps:
- uses: actions/checkout@v3
- name: Install yay
run: |
pacman -Sy --noconfirm --needed git base-devel
git clone https://aur.archlinux.org/yay-bin.git
chmod -R 777 yay-bin
cd yay-bin
runuser -unobody -- makepkg --syncdeps
echo "XXX Current directory content:"
ls -a
echo "XXX Installing the package with 'pacman -U yay-bin-1*.pkg.tar.zst'"
pacman --noconfirm -U yay-bin-1*.pkg.tar.zst
- name: Install dependencies
run: |
yay -Sy mmdebstrap
pacman -Sy --noconfirm schroot squashfs-tools
pacman -Sy --noconfirm python-markdown python-markupsafe python-jinja sharutils
- name: Build Arch package
run: |
make arch-linux
- name: upload
uses: actions/upload-artifact@v3
with:
path: shutorial-*.pkg.tar.xz
name: arch_package