mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-18 08:14:22 +00:00
Build the CLI tools in a dedicated ubuntu:24.04 workflow and pack them with the AppImage into a single linux-<version>.zip, matching the Windows/macOS release shape.
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
name: release
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
release-build-windows:
|
|
uses: ./.github/workflows/windows.yml
|
|
|
|
release-build-macos:
|
|
uses: ./.github/workflows/macos.yml
|
|
|
|
release-build-manual:
|
|
uses: ./.github/workflows/latex.yml
|
|
|
|
release-build-appimage:
|
|
uses: ./.github/workflows/appimage.yml
|
|
|
|
release-build-linux-cli:
|
|
uses: ./.github/workflows/linux-cli.yml
|
|
|
|
attach-to-release:
|
|
needs: [release-build-windows, release-build-macos, release-build-manual, release-build-appimage, release-build-linux-cli]
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/download-artifact@v4
|
|
- name: Create versioned Windows zip
|
|
run: |
|
|
VERSION="${{ github.event.release.tag_name }}"
|
|
VERSION_NO_V="${VERSION#v}"
|
|
cd windows
|
|
zip -r ../windows-$VERSION_NO_V.zip .
|
|
- name: Create versioned macOS zip
|
|
run: |
|
|
VERSION="${{ github.event.release.tag_name }}"
|
|
VERSION_NO_V="${VERSION#v}"
|
|
cd macos
|
|
chmod +x tracy-* tracy-profiler.app/Contents/MacOS/*
|
|
zip -r ../macos-$VERSION_NO_V.zip .
|
|
- name: Create versioned Linux zip
|
|
run: |
|
|
VERSION="${{ github.event.release.tag_name }}"
|
|
VERSION_NO_V="${VERSION#v}"
|
|
mkdir linux
|
|
cp appimage/* linux/
|
|
cp linux-cli/* linux/
|
|
cd linux
|
|
zip -r ../linux-$VERSION_NO_V.zip .
|
|
- uses: softprops/action-gh-release@v2
|
|
with:
|
|
files: |
|
|
windows-*.zip
|
|
macos-*.zip
|
|
linux-*.zip
|
|
manual/tracy.pdf
|