Merge pull request #489 from Jafaral/jrpc #309
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |