-
Notifications
You must be signed in to change notification settings - Fork 28
106 lines (88 loc) · 2.59 KB
/
packages.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
99
100
101
102
103
104
105
106
name: Binary Packages
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
jobs:
Windows:
runs-on: ${{ matrix.cfg.os }}
name: ${{ matrix.cfg.name }}
strategy:
matrix:
cfg:
- { os: windows-latest, name: 'Windows_64-bit', opt: '' }
#- { os: windows-latest, name: 'Windows_32-bit', opt: '--build=i686-w64-mingw32 --host=i686-w64-mingw32' }
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: >-
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-diffutils
mingw-w64-ucrt-x86_64-openssl
mingw-w64-ucrt-x86_64-libpng
mingw-w64-ucrt-x86_64-libjpeg-turbo
make
git
- run: git config --global core.autocrlf input
shell: bash
- name: Checkout
uses: actions/checkout@v4
- name: Configure
run: sh configure ${{ matrix.cfg.opt }}
- name: Make
run: make
- name: Installer
run: |
make WinInstaller
- name: Publish
uses: actions/upload-artifact@v4
with:
name: unicon-${{ matrix.cfg.name}}
path: Output/setup-unicon*.exe
Ubuntu:
runs-on: ${{ matrix.cfg.os }}
name: ${{ matrix.cfg.name }}
strategy:
matrix:
cfg:
- { os: ubuntu-20.04, name: 'Ubuntu-20.04_amd64', opt: '' }
- { os: ubuntu-22.04, name: 'Ubuntu-22.04_amd64', opt: '' }
#- { os: ubuntu-20.04, name: 'Ubuntu-20.04_x86', opt: '--host=i686-pc-linux-gnu' }
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
#sudo apt-get install -y gcc-multilib g++-multilib
sudo apt-get install -y build-essential fakeroot devscripts equivs dh-autoreconf
sudo mk-build-deps --install debian/control
- name: Configure
run: ./configure ${{ matrix.cfg.opt }}
- name: Deb
run: |
make debin
mkdir debian-pkg
cp ../unicondist/unicon_*.deb debian-pkg/
cp ../unicondist/unicon_*.changes debian-pkg/
cp ../unicondist/unicon_*.dsc debian-pkg/
cp ../unicondist/unicon_*.debian.tar.xz debian-pkg/
cp ../unicondist/unicon_*.orig.tar.gz debian-pkg/
- name: Publish
uses: actions/upload-artifact@v4
with:
name: unicon-${{ matrix.cfg.name}}
path: debian-pkg/unicon_*
- name: Install
run: sudo apt install ./debian-pkg/*.deb
- name: Test
run: make Test
env:
UC: unicon