SM5BSZ Linrad-05.03 rev 1038 #27
Workflow file for this run
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: 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 }} |