forked from versat/cntlm
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.31 KB
/
release.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
name: Release
on:
push:
tags:
- 'v*'
jobs:
build:
name: Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
command: bash -c "./configure && make win"
- os: ubuntu-latest
command: make deb && make rpm
steps:
- name: Git config (Windows only)
run: git config --global core.autocrlf input
if: ${{ matrix.os == 'windows-latest' }}
- uses: actions/checkout@v3
- name: Version
run: echo "::set-output name=version::$(cat VERSION)"
id: version
- name: Install Cygwin (Windows only)
uses: cygwin/cygwin-install-action@master
with:
packages: >-
gcc-core
make
ghostscript
dos2unix
zip
cygrunsrv
if: ${{ matrix.os == 'windows-latest' }}
- name: Install packages for creating packages and for Kerberos support (Ubuntu only)
run: sudo apt install -y fakeroot rpm dpkg debhelper libkrb5-dev
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Build
run: ${{ matrix.command }}
- name: Upload Release Assets
uses: softprops/action-gh-release@v1
with:
files: cntlm?${{ steps.version.outputs.version }}*