Skip to content

Commit f8d48bb

Browse files
authored
Initial release merge (#2)
* enabled actions * releases of source, jammy and focal
1 parent a45863d commit f8d48bb

File tree

15 files changed

+21145
-1
lines changed

15 files changed

+21145
-1
lines changed

.github/workflows/build.yml

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
name: Build dev packages
2+
on:
3+
push:
4+
tags-ignore:
5+
- '**'
6+
branches:
7+
- 'dev/*'
8+
9+
jobs:
10+
download_wsjtx:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Downlaod source code
14+
run: wget https://physics.princeton.edu/pulsar/k1jt/wsjtx-2.5.4.tgz
15+
16+
- name: Save WSJTX for next jobs
17+
uses: actions/upload-artifact@v2
18+
with:
19+
name: wsjtx-source-code
20+
path: wsjtx-2.5.4.tgz
21+
22+
23+
patch_source:
24+
needs: ['download_wsjtx']
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Get source code
28+
uses: actions/checkout@v2
29+
30+
- name: Download artifacts
31+
uses: actions/download-artifact@v2
32+
with:
33+
name: wsjtx-source-code
34+
35+
- name: Unpack the source
36+
run: mkdir unpack && pwd && ls -l && tar -xzvf wsjtx-2.5.4.tgz -C unpack/
37+
38+
- name: Prepare source
39+
run: mkdir newsrc && tar -xzvf unpack/wsjtx-2.5.4/src/wsjtx.tgz -C newsrc/
40+
41+
- name: Patch WSJTX
42+
run: cp -R patch/* newsrc/wsjtx/
43+
44+
- name: Repack source
45+
run: cd newsrc/ && tar -czvf wsjtx.tgz * && cd ..
46+
47+
- name: Copy package
48+
run: cp newsrc/wsjtx.tgz unpack/wsjtx-2.5.4/src/
49+
50+
- name: Generate md5sum
51+
run: cd unpack/wsjtx-2.5.4/src/ && md5sum wsjtx.tgz > wsjtx.tgz.md5sum
52+
53+
- name: Create new archive
54+
run: cd unpack/ && tar -czvf wsjtx-patched-2.5.4.tgz *
55+
56+
- name: Upload new patched archive
57+
uses: actions/upload-artifact@v2
58+
with:
59+
name: wsjtx-patched-code
60+
path: unpack/wsjtx-patched-2.5.4.tgz
61+
62+
63+
build_focal:
64+
needs: ['patch_source']
65+
runs-on: ubuntu-latest
66+
steps:
67+
- name: Get source code
68+
uses: actions/checkout@v2
69+
70+
- name: Download artifacts
71+
uses: actions/download-artifact@v2
72+
with:
73+
name: wsjtx-patched-code
74+
75+
- name: Create Docker Image
76+
run: cd $GITHUB_WORKSPACE/docker/ubuntu_focal && docker build . --tag ubuntu_focal_build
77+
78+
- name: Run Container
79+
run: docker run -t -v $GITHUB_WORKSPACE:/build -w /build ubuntu_focal_build /build/docker/ubuntu_focal/build.sh
80+
81+
- name: Upload new patched archive
82+
uses: actions/upload-artifact@v2
83+
with:
84+
name: wsjtx-focal-package
85+
path: wsjtx_2.5.4_focal_amd64.deb
86+
87+
build_jammy:
88+
needs: ['patch_source']
89+
runs-on: ubuntu-latest
90+
steps:
91+
- name: Get source code
92+
uses: actions/checkout@v2
93+
94+
- name: Download artifacts
95+
uses: actions/download-artifact@v2
96+
with:
97+
name: wsjtx-patched-code
98+
99+
- name: Create Docker Image
100+
run: cd $GITHUB_WORKSPACE/docker/ubuntu_jammy && docker build . --tag ubuntu_jammy_build
101+
102+
- name: Run Container
103+
run: docker run -t -v $GITHUB_WORKSPACE:/build -w /build ubuntu_jammy_build /build/docker/ubuntu_jammy/build.sh
104+
105+
- name: Upload new patched archive
106+
uses: actions/upload-artifact@v2
107+
with:
108+
name: wsjtx-jammy-package
109+
path: wsjtx_2.5.4_jammy_amd64.deb
110+
111+
112+
release_draft:
113+
needs: ['build_focal' , 'build_jammy']
114+
runs-on: ubuntu-latest
115+
steps:
116+
- name: Download artifacts
117+
uses: actions/download-artifact@v2
118+
119+
- name: Release draft
120+
uses: actions/create-release@v1
121+
id: create_release_draft
122+
with:
123+
draft: true
124+
prerelease: true
125+
release_name: Development build ${{ github.run_number }}
126+
tag_name: ${{ github.ref }}
127+
body: |
128+
Automatic build on push. This is not a release.
129+
env:
130+
GITHUB_TOKEN: ${{ github.token }}
131+
132+
- name: upload focal artifact
133+
uses: actions/upload-release-asset@v1
134+
env:
135+
GITHUB_TOKEN: ${{ github.token }}
136+
with:
137+
upload_url: ${{ steps.create_release_draft.outputs.upload_url }}
138+
asset_path: wsjtx-focal-package/wsjtx_2.5.4_focal_amd64.deb
139+
asset_name: wsjtx_2.5.4_focal_amd64.deb
140+
asset_content_type: application/gzip
141+
142+
- name: upload jammy artifact
143+
uses: actions/upload-release-asset@v1
144+
env:
145+
GITHUB_TOKEN: ${{ github.token }}
146+
with:
147+
upload_url: ${{ steps.create_release_draft.outputs.upload_url }}
148+
asset_path: wsjtx-jammy-package/wsjtx_2.5.4_jammy_amd64.deb
149+
asset_name: wsjtx_2.5.4_jammy_amd64.deb
150+
asset_content_type: application/gzip
151+
152+
- name: upload patched source code
153+
uses: actions/upload-release-asset@v1
154+
env:
155+
GITHUB_TOKEN: ${{ github.token }}
156+
with:
157+
upload_url: ${{ steps.create_release_draft.outputs.upload_url }}
158+
asset_path: wsjtx-patched-code/wsjtx-patched-2.5.4.tgz
159+
asset_name: wsjtx-patched-2.5.4.tgz
160+
asset_content_type: application/gzip
161+
162+
163+
clean_artifacts:
164+
needs: ['release_draft']
165+
runs-on: ubuntu-latest
166+
steps:
167+
- name: Delete Artifact
168+
uses: GeekyEggo/[email protected]
169+
with:
170+
name: |
171+
wsjtx-patched-code
172+
wsjtx-source-code
173+
wsjtx-focal-package
174+
wsjtx-jammy-package

.github/workflows/release.yml

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
name: Build release packages
2+
on:
3+
push:
4+
tags:
5+
- '**'
6+
branches-ignore:
7+
- '**'
8+
9+
jobs:
10+
download_wsjtx:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Downlaod source code
14+
run: wget https://physics.princeton.edu/pulsar/k1jt/wsjtx-2.5.4.tgz
15+
16+
- name: Save WSJTX for next jobs
17+
uses: actions/upload-artifact@v2
18+
with:
19+
name: wsjtx-source-code
20+
path: wsjtx-2.5.4.tgz
21+
22+
23+
patch_source:
24+
needs: ['download_wsjtx']
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Get source code
28+
uses: actions/checkout@v2
29+
30+
- name: Download artifacts
31+
uses: actions/download-artifact@v2
32+
with:
33+
name: wsjtx-source-code
34+
35+
- name: Unpack the source
36+
run: mkdir unpack && pwd && ls -l && tar -xzvf wsjtx-2.5.4.tgz -C unpack/
37+
38+
- name: Prepare source
39+
run: mkdir newsrc && tar -xzvf unpack/wsjtx-2.5.4/src/wsjtx.tgz -C newsrc/
40+
41+
- name: Patch WSJTX
42+
run: cp -R patch/* newsrc/wsjtx/
43+
44+
- name: Repack source
45+
run: cd newsrc/ && tar -czvf wsjtx.tgz * && cd ..
46+
47+
- name: Copy package
48+
run: cp newsrc/wsjtx.tgz unpack/wsjtx-2.5.4/src/
49+
50+
- name: Generate md5sum
51+
run: cd unpack/wsjtx-2.5.4/src/ && md5sum wsjtx.tgz > wsjtx.tgz.md5sum
52+
53+
- name: Create new archive
54+
run: cd unpack/ && tar -czvf wsjtx-patched-2.5.4.tgz *
55+
56+
- name: Upload new patched archive
57+
uses: actions/upload-artifact@v2
58+
with:
59+
name: wsjtx-patched-code
60+
path: unpack/wsjtx-patched-2.5.4.tgz
61+
62+
63+
build_focal:
64+
needs: ['patch_source']
65+
runs-on: ubuntu-latest
66+
steps:
67+
- name: Get source code
68+
uses: actions/checkout@v2
69+
70+
- name: Download artifacts
71+
uses: actions/download-artifact@v2
72+
with:
73+
name: wsjtx-patched-code
74+
75+
- name: Create Docker Image
76+
run: cd $GITHUB_WORKSPACE/docker/ubuntu_focal && docker build . --tag ubuntu_focal_build
77+
78+
- name: Run Container
79+
run: docker run -t -v $GITHUB_WORKSPACE:/build -w /build ubuntu_focal_build /build/docker/ubuntu_focal/build.sh
80+
81+
- name: Upload new patched archive
82+
uses: actions/upload-artifact@v2
83+
with:
84+
name: wsjtx-focal-package
85+
path: wsjtx_2.5.4_focal_amd64.deb
86+
87+
build_jammy:
88+
needs: ['patch_source']
89+
runs-on: ubuntu-latest
90+
steps:
91+
- name: Get source code
92+
uses: actions/checkout@v2
93+
94+
- name: Download artifacts
95+
uses: actions/download-artifact@v2
96+
with:
97+
name: wsjtx-patched-code
98+
99+
- name: Create Docker Image
100+
run: cd $GITHUB_WORKSPACE/docker/ubuntu_jammy && docker build . --tag ubuntu_jammy_build
101+
102+
- name: Run Container
103+
run: docker run -t -v $GITHUB_WORKSPACE:/build -w /build ubuntu_jammy_build /build/docker/ubuntu_jammy/build.sh
104+
105+
- name: Upload new patched archive
106+
uses: actions/upload-artifact@v2
107+
with:
108+
name: wsjtx-jammy-package
109+
path: wsjtx_2.5.4_jammy_amd64.deb
110+
111+
112+
release_draft:
113+
needs: ['build_focal' , 'build_jammy']
114+
runs-on: ubuntu-latest
115+
steps:
116+
- name: Download artifacts
117+
uses: actions/download-artifact@v2
118+
119+
- name: Release draft
120+
uses: actions/create-release@v1
121+
id: create_release_draft
122+
with:
123+
draft: false
124+
prerelease: false
125+
release_name: Release ${{ github.ref_name }}
126+
tag_name: ${{ github.ref }}
127+
body: |
128+
Release build.
129+
env:
130+
GITHUB_TOKEN: ${{ github.token }}
131+
132+
- name: upload focal artifact
133+
uses: actions/upload-release-asset@v1
134+
env:
135+
GITHUB_TOKEN: ${{ github.token }}
136+
with:
137+
upload_url: ${{ steps.create_release_draft.outputs.upload_url }}
138+
asset_path: wsjtx-focal-package/wsjtx_2.5.4_focal_amd64.deb
139+
asset_name: wsjtx_2.5.4_focal_amd64.deb
140+
asset_content_type: application/gzip
141+
142+
- name: upload jammy artifact
143+
uses: actions/upload-release-asset@v1
144+
env:
145+
GITHUB_TOKEN: ${{ github.token }}
146+
with:
147+
upload_url: ${{ steps.create_release_draft.outputs.upload_url }}
148+
asset_path: wsjtx-jammy-package/wsjtx_2.5.4_jammy_amd64.deb
149+
asset_name: wsjtx_2.5.4_jammy_amd64.deb
150+
asset_content_type: application/gzip
151+
152+
- name: upload patched source code
153+
uses: actions/upload-release-asset@v1
154+
env:
155+
GITHUB_TOKEN: ${{ github.token }}
156+
with:
157+
upload_url: ${{ steps.create_release_draft.outputs.upload_url }}
158+
asset_path: wsjtx-patched-code/wsjtx-patched-2.5.4.tgz
159+
asset_name: wsjtx-patched-2.5.4.tgz
160+
asset_content_type: application/gzip
161+
162+
163+
clean_artifacts:
164+
needs: ['release_draft']
165+
runs-on: ubuntu-latest
166+
steps:
167+
- name: Delete Artifact
168+
uses: GeekyEggo/[email protected]
169+
with:
170+
name: |
171+
wsjtx-patched-code
172+
wsjtx-source-code
173+
wsjtx-focal-package
174+
wsjtx-jammy-package

README.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,43 @@
1-
# wsjtx-regex-filter
1+
# WSJT-X 2.5.4 - Regex ignore filter
2+
3+
## Build and binaries
4+
5+
Navigate to [GitHub Actions](https://github.com/d3cker/wsjtx-regex-filter/actions) for build process details.
6+
7+
[Available releases](https://github.com/d3cker/wsjtx-regex-filter/releases):
8+
- Ubuntu Focal 20.04
9+
- Ubuntu Jammy 22.04
10+
- Patched source code tgz archive
11+
12+
If you want to compile this patch by your own, just grab patched source code from
13+
[Releases](https://github.com/d3cker/wsjtx-regex-filter/releases) page and follow
14+
original INSTALL instructions.
15+
16+
## Features
17+
- Added option: Setup -> RX/TX Macros -> RX regex ignore filter
18+
![Options](images/options.png)
19+
- CQ answers from matched callsigns are ignored
20+
- reply to CQ from matched callsigns are ignored
21+
- Manual clicks (calls) on matched stations are ignored
22+
23+
![Main window](images/main.png)
24+
25+
Just like that. Tested during WW DIGI'22 contest.
26+
27+
## Note on purpose
28+
29+
I have to confess that I'm not a software developer and this patch is just
30+
a dirty hack to make it possible to make auto QSO with all except Russians.
31+
To filter out RU stations use this filter: **^(R[A-Z1-9]|U[A-I])+**
32+
33+
I know that this is not part of "ham spirit" to make such a software but...
34+
let's face it. One does not simply attack its neighbour and expects others
35+
to stay quiet. As a Pole I know my country has long and cloudy history with
36+
both Russians and Ukrainians,but what happened in the past should stay in the past.
37+
One may remember, one may forget, one may cry for revenge or one my simply forgive.
38+
From my perspective, we live in 2022, Europe, in the times of wide spread Internet.
39+
Suddenly war explodes at the borders of my country. The war that makes no sense,
40+
pure aggression and disgusting act of terrorism. As long as regular Russians do not
41+
resist to their goverment I would act and make software like this, no matter what.
42+
43+
Bartek SP6XD

0 commit comments

Comments
 (0)