commit 23925831b99a00491d80ccc0165179aab00bd334 Spenser Truex <truex@equwal.com> 2026-09-20 22:37:40 -0700 Remove the GitHub Actions workflow The project does not use CI. The README tells how to make a release: make dist, contrib/windows/build-installer.sh, and, on a Mac, contrib/macos/build-dmg.sh.
.github/workflows/build.yml | 90 --------------------------------------------- README | 7 ++-- 2 files changed, 4 insertions(+), 93 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 7a4038f..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,90 +0,0 @@ -# Test bm on Linux and macOS, and make the Windows installer and the macOS -# image. For a tag vVERSION, also make a release with them. -name: build - -on: - push: - pull_request: - -permissions: - contents: read - -jobs: - check: - name: make check (${{ matrix.os }}) - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, macos-latest] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v4 - - run: make check - - name: shellcheck contrib - if: runner.os == 'Linux' - run: >- - shellcheck -s sh - contrib/windows/fzf contrib/windows/sbm.sh contrib/windows/sbm-setup - contrib/windows/build-installer.sh - contrib/macos/sbm contrib/macos/sbm-run contrib/macos/build-dmg.sh - - windows: - name: Windows installer - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: sudo apt-get update && sudo apt-get install -y nsis - - run: sh contrib/windows/build-installer.sh - - uses: actions/upload-artifact@v4 - with: - name: windows - path: sbm-*-setup.exe - if-no-files-found: error - - macos: - name: macOS image - runs-on: macos-latest - steps: - - uses: actions/checkout@v4 - - run: sh contrib/macos/build-dmg.sh - - name: Check the image - run: | - dmg=$(echo sbm-*.dmg) - hdiutil verify "$dmg" - mnt=$(mktemp -d) - hdiutil attach -nobrowse -readonly -mountpoint "$mnt" "$dmg" - app=$mnt/sbm.app - plutil -lint "$app/Contents/Info.plist" - codesign --verify --deep --strict "$app" - lipo -archs "$app/Contents/Resources/bin/fzf" - "$app/Contents/Resources/bin/fzf" --version - printf 'https://a.example\tA\tt\n' > "$RUNNER_TEMP/bookmarks" - test "$(BOOKMARKS=$RUNNER_TEMP/bookmarks "$app/Contents/Resources/sbm-run" --list | cut -f1)" = https://a.example - hdiutil detach "$mnt" - - uses: actions/upload-artifact@v4 - with: - name: macos - path: sbm-*.dmg - if-no-files-found: error - - release: - name: Release - if: startsWith(github.ref, 'refs/tags/v') - needs: [check, windows, macos] - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v4 - - name: Check that the tag is v and the VERSION of config.mk - run: test "$GITHUB_REF_NAME" = "v$(sed -n 's/^VERSION=//p' config.mk)" - - run: make dist - - uses: actions/download-artifact@v4 - with: - merge-multiple: true - - name: Make the release - env: - GH_TOKEN: ${{ github.token }} - run: >- - gh release create "$GITHUB_REF_NAME" --title "sbm ${GITHUB_REF_NAME#v}" - --generate-notes sbm-*.tar.gz sbm-*-setup.exe sbm-*.dmg diff --git a/README b/README index e273451..4194f55 100644 --- a/README +++ b/README @@ -264,9 +264,10 @@ under another shell with SBM_SH=dash sh test/run.sh. They script dmenu, fzf and curl, so they need no display and no network. == Releases == -Push a tag vVERSION, with VERSION from config.mk. GitHub Actions then runs -make check on Linux and macOS, and makes the installer and the image. It -makes a release with them and with the tarball of make dist. +Set VERSION in config.mk. Tag the release as vVERSION. make dist makes the +tarball. contrib/windows/build-installer.sh makes the Windows installer. On +a Mac, contrib/macos/build-dmg.sh makes the image. Attach the three files to +the GitHub release of the tag. == Credits == Some ideas taken from Karl Voit: