-
Notifications
You must be signed in to change notification settings - Fork 3
81 lines (79 loc) · 3.52 KB
/
ci.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
name: CI
on:
push:
tags:
- '**'
jobs:
windows-build:
name: Windows cross-compile
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: sudo apt update -qq && sudo apt install -y gcc-mingw-w64 nasm
- name: Checkout code
uses: actions/checkout@v4
#- name: Setup API 3.09
# run: |
# cp Makefile.msys2.nodebug Makefile
# sed -i 's/^\(#define SDRPLAY3PAR_VERNR 3[0-9][0-9]\)/\/\/\1/; s/^\/\/\(#define SDRPLAY3PAR_VERNR 309\)/\1/' vernr.h
#- name: Build 32 bit - API 3.09
# run: make linrad.exe && mv linrad.exe linrad-API3.09.exe && rm *.oz
#- name: Build 64 bit - API 3.09
# run: make linrad64.exe && mv linrad64.exe linrad64-API3.09.exe && rm *.ox
#- name: Setup API 3.10
# run: |
# cp Makefile.msys2.nodebug Makefile
# sed -i 's/^\(#define SDRPLAY3PAR_VERNR 3[0-9][0-9]\)/\/\/\1/; s/^\/\/\(#define SDRPLAY3PAR_VERNR 310\)/\1/' vernr.h
#- name: Build 32 bit - API 3.10
# run: make linrad.exe && mv linrad.exe linrad-API3.10.exe && rm *.oz
#- name: Build 64 bit - API 3.10
# run: make linrad64.exe && mv linrad64.exe linrad64-API3.10.exe && rm *.ox
#- name: Setup API 3.11
# run: |
# cp Makefile.msys2.nodebug Makefile
# sed -i 's/^\(#define SDRPLAY3PAR_VERNR 3[0-9][0-9]\)/\/\/\1/; s/^\/\/\(#define SDRPLAY3PAR_VERNR 311\)/\1/' vernr.h
#- name: Build 32 bit - API 3.11
# run: make linrad.exe && mv linrad.exe linrad-API3.11.exe && rm *.oz
#- name: Build 64 bit - API 3.11
# run: make linrad64.exe && mv linrad64.exe linrad64-API3.11.exe && rm *.ox
#- name: Setup API 3.14
# run: |
# cp Makefile.msys2.nodebug Makefile
# sed -i 's/^\(#define SDRPLAY3PAR_VERNR 3[0-9][0-9]\)/\/\/\1/; s/^\/\/\(#define SDRPLAY3PAR_VERNR 314\)/\1/' vernr.h
#- name: Build 32 bit - API 3.14
# run: make linrad.exe && mv linrad.exe linrad-API3.14.exe && rm *.oz
#- name: Build 64 bit - API 3.14
# run: make linrad64.exe && mv linrad64.exe linrad64-API3.14.exe && rm *.ox
- name: Setup API 3.15
run: |
cp Makefile.msys2.nodebug Makefile
sed -i 's/^\(#define SDRPLAY3PAR_VERNR 3[0-9][0-9]\)/\/\/\1/; s/^\/\/\(#define SDRPLAY3PAR_VERNR 315\)/\1/' vernr.h
#- name: Build 32 bit - API 3.15
# run: make linrad.exe && mv linrad.exe linrad-API3.15.exe && rm *.oz
- name: Build 64 bit - API 3.15
run: make linrad64.exe && mv linrad64.exe linrad64-API3.15.exe && rm *.ox
- name: Checksums
#run: sha256sum linrad-API3.09.exe linrad64-API3.09.exe linrad-API3.10.exe linrad64-API3.10.exe linrad-API3.11.exe linrad64-API3.11.exe linrad-API3.14.exe linrad64-API3.14.exe linrad-API3.15.exe linrad64-API3.15.exe > checksums-sha256.txt
run: sha256sum linrad64-API3.15.exe > checksums-sha256.txt
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
#with:
# files: |
# linrad-API3.09.exe
# linrad64-API3.09.exe
# linrad-API3.10.exe
# linrad64-API3.10.exe
# linrad-API3.11.exe
# linrad64-API3.11.exe
# linrad-API3.14.exe
# linrad64-API3.14.exe
# linrad-API3.15.exe
# linrad64-API3.15.exe
# checksums-sha256.txt
with:
files: |
linrad64-API3.15.exe
checksums-sha256.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}