Files
gui/.github/workflows/nightly.yml
T
Neo-DesktopandClaude Opus 5.5 d924bf8860 Make the Win32 app the only desktop GUI
Remove the SwiftUI app for macOS (macos/, cmake/MacosEmbed.cmake,
cmake/macos-embed/) and the GTK 4 app for Linux (linux/). The Win32
app (windows/) is now the canonical GUI on Windows, and on Linux and
macOS over the portable Win32 layer of clang-retro MFC (winport/).

- CMake: remove DMODEM_GUI_LINUX and the Xcode support. With no
  DMODEM_GUI_WINPORT, Linux and macOS build only the libraries and
  their tests. The built-in modem is on by default for Windows and
  winport.
- winport: install the app, its desktop entry, AppStream data, icon
  and the MT9234MU firmware on Linux (firmware/ moves to the top).
- CI: the "core" job keeps the library, sanitizer and sshd tests on
  Linux. The macOS library tests move to the winport-macos job. The
  linux and macos jobs and their nightly files are removed.
- Docs, site and comments: describe one Win32 app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUx6MjNXmAFKULZu3U
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
2026-11-28 12:48:14 +00:00

118 lines
5.0 KiB
YAML

# Nightly: the "nightly" pre-release of the app, from the artifacts of
# the newest complete run of build.yml on main. It does not build the
# app again. It runs each time a run of build.yml on main completes,
# and once a day. Each run updates the release in place and moves its
# tag: a run that fails does not delete the release. When main has no
# new commits, the run stops and the release does not change. A manual
# run (Actions > Nightly > Run workflow) can publish again with "force".
#
# The files are not signed: Windows SmartScreen and macOS Gatekeeper
# show a warning for them. The release has only the files of this
# build: nightly-publish.sh removes the files that the build did not
# make (for example the old Linux GTK app and the old macOS SwiftUI app).
name: Nightly
on:
# (each change to main: when its build completes)
workflow_run:
workflows: [Build]
types: [completed]
branches: [main]
schedule:
- cron: "23 5 * * *"
workflow_dispatch:
inputs:
force:
description: Publish again, also when main has no new commits
type: boolean
default: false
# (one at a time: a second run waits for the first)
concurrency:
group: nightly
cancel-in-progress: false
permissions:
contents: write
actions: read
jobs:
nightly:
runs-on: ubuntu-24.04
timeout-minutes: 20
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
steps:
- uses: actions/checkout@v4
- name: The newest build of main
id: pick
run: .github/scripts/nightly-pick.sh build.yml
env:
FORCE: ${{ inputs.force || 'false' }}
- uses: actions/download-artifact@v4
if: steps.pick.outputs.skip == 'false'
with:
run-id: ${{ steps.pick.outputs.run_build_yml }}
github-token: ${{ github.token }}
path: dl
- name: Files
if: steps.pick.outputs.skip == 'false'
env:
SHA: ${{ steps.pick.outputs.sha }}
RUN: ${{ steps.pick.outputs.run_build_yml }}
run: |
mkdir out
take() { # take ARTIFACT FILE [NAME]: copy it if the build made it
if [ -f "dl/$1/$2" ]; then cp "dl/$1/$2" "out/${3:-$2}"; else echo "- \`${3:-$2}\`" >> missing; fi
}
take dmodem-windows-9x dmodem.exe dmodem-win9x.exe
take dmodem-windows-98 dmodem.exe dmodem-win98.exe
take dmodem-windows dmodem.exe dmodem-win7.exe
take dmodem-win32-linux dmodem-win32-linux-x86_64.tar.gz
take dmodem-win32-macos dmodem-win32-macos-arm64.tar.gz
take dmodem-win32-macos-x86_64 dmodem-win32-macos-x86_64.tar.gz
(cd out && sha256sum * > SHA256SUMS)
ls -l out
{
echo "The newest build of \`main\`, from commit $SHA ([build run]($GITHUB_SERVER_URL/$GH_REPO/actions/runs/$RUN))."
echo "This is not a stable release. The files are not signed."
echo
echo "| File | What it is |"
echo "| --- | --- |"
echo "| \`dmodem-win9x.exe\` | The Windows app with the modem built in, for Windows 95, 98, ME, NT 4.0 and later (no C runtime DLL; Windows 95 needs Winsock 2) |"
echo "| \`dmodem-win98.exe\` | The Windows app with the modem built in, for Windows 98 SE, ME, 2000 and later (on msvcrt.dll) |"
echo "| \`dmodem-win7.exe\` | The Windows app for Windows 7 and later, with the modem built in |"
echo "| \`dmodem-win32-linux-x86_64.tar.gz\` | The app on Linux (X11) with the modem built in, x86_64 |"
echo "| \`dmodem-win32-macos-arm64.tar.gz\` | The app on macOS with the modem built in, arm64 (Apple silicon) |"
echo "| \`dmodem-win32-macos-x86_64.tar.gz\` | The app on macOS with the modem built in, x86_64 (Intel Mac) |"
echo "| \`SHA256SUMS\` | The SHA-256 of each file |"
if [ -f missing ]; then
echo
echo "This build did not make these files:"
cat missing
fi
} > notes.md
# The step uses the DMODEM_BUMP_TOKEN organization secret
# (Contents: read and write on D-Modem/gui, refer to
# d-modem-bump.yml) if it is available. If that token fails (for
# example "HTTP 403: Resource not accessible by personal access
# token"), the next step tries again with the GITHUB_TOKEN of this
# workflow. The script updates the release in place, so a failed
# try does not delete it.
- name: Publish
id: publish
if: steps.pick.outputs.skip == 'false' && env.HAS_BUMP_TOKEN == 'true'
continue-on-error: true
env:
HAS_BUMP_TOKEN: ${{ secrets.DMODEM_BUMP_TOKEN != '' }}
GH_TOKEN: ${{ secrets.DMODEM_BUMP_TOKEN }}
run: .github/scripts/nightly-publish.sh "${{ steps.pick.outputs.sha }}" notes.md out
- name: Publish (GITHUB_TOKEN)
if: steps.pick.outputs.skip == 'false' && steps.publish.outcome != 'success'
run: .github/scripts/nightly-publish.sh "${{ steps.pick.outputs.sha }}" notes.md out