Skip to content

use actions/checkout@v4 in GitHub CI #23

use actions/checkout@v4 in GitHub CI

use actions/checkout@v4 in GitHub CI #23

Workflow file for this run

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
- 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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}