Files
gui/.github/workflows/nightly.yml
T
Claude 1ca2115f4d Build the modem into the Windows app on Linux and macOS
The Windows app on macOS (and on Linux) had no built-in modem: CMake
turned DMODEM_GUI_EMBED off for winport/, and CI did not check out the
D-Modem submodule. The app looked for dmodemd.

- CMake: DMODEM_GUI_EMBED is on by default for winport/. winport/
  links libdmodem_embed. The data file of the line uses DIR_SEP.
- CI: the winport jobs check out the submodule and check that the
  built-in modem is in the app. The smoke test starts the built-in
  modem (SIP, no account), and runs dmodemd with builtin=0.
- CI: the SwiftUI app builds for arm64 and x86_64 (it was arm64 alone),
  and the check looks at each architecture.
- Docs and the release notes say which builds have the modem.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTrw1ffsyY5bhTghu1
2026-11-25 03:45:59 +00:00

104 lines
4.5 KiB
YAML

# Nightly: the "nightly" pre-release of the apps, from the artifacts of
# the newest complete run of build.yml on main. It does not build the
# apps again. Each run replaces the release and moves its tag. 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.
name: Nightly
on:
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-linux dmodem-gui-linux-x86_64.tar.gz
take dmodem-macos D-Modem-macos.zip
take dmodem-win32-linux dmodem-win32-linux-x86_64.tar.gz
take dmodem-win32-macos dmodem-win32-macos-arm64.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-gui-linux-x86_64.tar.gz\` | The Linux app (GTK 4), x86_64. It needs GTK 4, libadwaita, PulseAudio and libsndfile. Its files are in \`usr/\`: extract it into \`/\`, for example with \`sudo tar -xzf dmodem-gui-linux-x86_64.tar.gz -C /\` |"
echo "| \`D-Modem-macos.zip\` | The macOS app (SwiftUI) with the modem built in, arm64 and x86_64, macOS 13 and later. Not notarized: right-click the app and select Open |"
echo "| \`dmodem-win32-linux-x86_64.tar.gz\` | The Windows app on Linux (X11) with the modem built in, x86_64 |"
echo "| \`dmodem-win32-macos-arm64.tar.gz\` | The Windows app on macOS with the modem built in, arm64 |"
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 GITHUB_TOKEN of this workflow can delete the release but gets
# "HTTP 403: Resource not accessible by integration" when it creates
# the release. Thus 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.
- name: Publish
if: steps.pick.outputs.skip == 'false'
env:
GH_TOKEN: ${{ secrets.DMODEM_BUMP_TOKEN || github.token }}
run: .github/scripts/nightly-publish.sh "${{ steps.pick.outputs.sha }}" notes.md out