Skip to content

Commit 890741f

Browse files
committed
Sync versions to v1.8 and improve CI/CD
1 parent faffa4d commit 890741f

4 files changed

Lines changed: 12 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,20 @@ jobs:
3030
id: version
3131
run: |
3232
if [[ $GITHUB_REF == refs/tags/* ]]; then
33-
VERSION=${GITHUB_REF#refs/tags/}
34-
else
35-
VERSION="latest"
33+
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
3634
fi
37-
echo "VERSION=$VERSION" >> $GITHUB_ENV
3835
echo "Building version: $VERSION"
3936
4037
- name: Package tools
4138
run: |
4239
# Create LHA archives
4340
# We assume 'lha' is installed in the container
44-
lha a host-run-${{ env.VERSION }}.lha host-run
45-
lha a host-multiview-${{ env.VERSION }}.lha host-multiview
46-
lha a host-shell-${{ env.VERSION }}.lha host-shell
41+
# Create single LHA archive
42+
if [ ! -z "$VERSION" ]; then
43+
lha a -r "Host-Tools-${VERSION}.lha" host-run host-multiview host-shell
44+
else
45+
lha a -r "Host-Tools-latest.lha" host-run host-multiview host-shell
46+
fi
4747
4848
- name: Upload Artifacts
4949
uses: actions/upload-artifact@v4
@@ -65,5 +65,6 @@ jobs:
6565
- name: Create Release
6666
uses: softprops/action-gh-release@v1
6767
with:
68+
name: Host-Tools ${{ github.ref_name }}
6869
files: "*.lha"
6970
generate_release_notes: true

src/host-multiview.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
#include <stdlib.h>
44
#include "uae_pragmas.h"
55

6-
static const char __ver[40] = "$VER: Host-MultiView v1.4 (2025-12-25)";
6+
static const char __ver[40] = "$VER: Host-MultiView v1.8 (2025-12-26)";
77

88
int print_usage()
99
{
10-
printf("Host-MultiView v1.4\n");
10+
printf("Host-MultiView v1.8\n");
1111
printf("Host-MultiView is a command line tool to open files with the host default handler, from within UAE.\n");
1212
printf("%s\nUsage: host-multiview <filename> [filename2 ...]\n", __ver);
1313
return 0;

src/host-run.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <stdlib.h>
44
#include "uae_pragmas.h"
55

6-
static const char __ver[40] = "$VER: Host-Run v1.8 (2025-12-25)";
6+
static const char __ver[40] = "$VER: Host-Run v1.8 (2025-12-26)";
77

88
#define MAX_CMD_LEN 4096
99

src/host-shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#define OUTBUFSIZE 4095
1010

11-
static const char version[] = "$VER: Host-Shell v1.2 (2025-12-25)";
11+
static const char version[] = "$VER: Host-Shell v1.8 (2025-12-26)";
1212
char outbuf[OUTBUFSIZE + 1];
1313

1414
int main(int argc, char *argv[])

0 commit comments

Comments
 (0)