-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (92 loc) · 2.59 KB
/
publish.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
---
name: Publish
on:
pull_request:
branches:
- master
- develop
jobs:
msys2-mingw:
name: Publish Mingw 64
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- uses: oprypin/find-latest-tag@v1
id: gettag
with:
repository: PerryWerneck/dmiget
releases-only: true
- uses: msys2/setup-msys2@v2
with:
msystem: mingw64
update: true
install: git dos2unix mingw-w64-x86_64-gcc automake autoconf make pkgconf
gettext-devel libtool xz
- name: CI-Build
run: |
dos2unix PKGBUILD.mingw
makepkg BUILDDIR=/tmp/pkg -f -p PKGBUILD.mingw
- uses: ncipollo/release-action@v1
with:
tag: ${{ steps.gettag.outputs.tag }}
artifacts: "*.pkg.tar.zst"
allowUpdates: true
draft: false
makeLatest: true
omitBody: true
omitPrereleaseDuringUpdate: true
replacesArtifacts: true
msvc:
runs-on: windows-latest
name: Publish MSVC 64
steps:
- uses: actions/checkout@v3
- uses: oprypin/find-latest-tag@v1
id: gettag
with:
repository: PerryWerneck/dmiget
releases-only: true
- uses: ilammy/msvc-dev-cmd@v1.4.1
- name: CI-Build
run: |
nmake -f win\Makefile.msc
xcopy /s /i /y src\include\smbios\*.h include\smbios
7z a msvc-dmiget-x86_64.zip .\lib .\bin .\include
- uses: ncipollo/release-action@v1
with:
tag: ${{ steps.gettag.outputs.tag }}
artifacts: "msvc-dmiget-x86_64.zip"
allowUpdates: true
draft: false
makeLatest: true
omitBody: true
omitPrereleaseDuringUpdate: true
replacesArtifacts: true
python:
runs-on: windows-latest
name: Publish Windows python
steps:
- uses: actions/checkout@v3
- uses: oprypin/find-latest-tag@v1
id: gettag
with:
repository: PerryWerneck/dmiget
releases-only: true
- uses: ilammy/msvc-dev-cmd@v1.4.1
- name: Set up Python
uses: actions/setup-python@v4
- name: Build installer
run: python setup.py bdist_wininst
- uses: ncipollo/release-action@v1
with:
tag: ${{ steps.gettag.outputs.tag }}
artifacts: "dist/*.exe"
allowUpdates: true
draft: false
makeLatest: true
omitBody: true
omitPrereleaseDuringUpdate: true
replacesArtifacts: true