Skip to content

Apply Windows cmark fallback before CPPFLAGS #27

Apply Windows cmark fallback before CPPFLAGS

Apply Windows cmark fallback before CPPFLAGS #27

Workflow file for this run

name: linux-appimage
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
version:
description: Optional version to package (for example 0.1.0 or 0.1.1-rc2).
required: false
type: string
permissions:
contents: write
jobs:
resolve-version:
runs-on: ubuntu-latest
outputs:
package_version: ${{ steps.version.outputs.package_version }}
steps:
- id: version
shell: bash
run: |
set -euo pipefail
version='${{ github.event.inputs.version }}'
if [[ -z "$version" && '${{ github.ref_type }}' == 'tag' ]]; then
version='${{ github.ref_name }}'
fi
version="${version#v}"
printf 'package_version=%s\n' "$version" >> "$GITHUB_OUTPUT"
build-appimage:
needs: resolve-version
uses: danjboyd/gnustep-packager/.github/workflows/package-gnustep-app.yml@3c10f1a2c8f976cc30aaaa4f85f6a14b74ebb562
with:
manifest-path: packaging/manifests/linux-appimage.manifest.json
backend: appimage
package-version: ${{ needs.resolve-version.outputs.package_version }}
packager-repository: danjboyd/gnustep-packager
packager-ref: 3c10f1a2c8f976cc30aaaa4f85f6a14b74ebb562
preflight-shell: bash
preflight-command: ./packaging/ci/preflight-appimage.sh
run-validation: true
run-smoke: true
upload-artifacts: true
artifact-name: objcmarkdown-linux
publish-release-assets:
if: github.ref_type == 'tag'
needs:
- build-appimage
runs-on: ubuntu-latest
steps:
- name: Download Linux Package Artifacts
uses: actions/download-artifact@v4
with:
name: objcmarkdown-linux-packages
path: dist/linux
- name: Stage Linux Release Assets
shell: bash
run: |
set -euo pipefail
mkdir -p release-assets
cp dist/linux/*.AppImage release-assets/
if compgen -G 'dist/linux/*.AppImage.zsync' > /dev/null; then
cp dist/linux/*.AppImage.zsync release-assets/
fi
if compgen -G 'dist/linux/*.update-feed.json' > /dev/null; then
cp dist/linux/*.update-feed.json release-assets/
fi
if compgen -G 'dist/linux/*.metadata.json' > /dev/null; then
cp dist/linux/*.metadata.json release-assets/
fi
if compgen -G 'dist/linux/*.diagnostics.txt' > /dev/null; then
cp dist/linux/*.diagnostics.txt release-assets/
fi
- name: Publish Linux Release Assets
uses: softprops/action-gh-release@v2
with:
files: release-assets/*