mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-18 17:19:53 +00:00
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
name: appimage
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
|
|
env:
|
|
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm-cache
|
|
|
|
jobs:
|
|
build-appimage:
|
|
runs-on: ubuntu-latest
|
|
container: ubuntu:24.04
|
|
steps:
|
|
- name: Install dependencies
|
|
run: |
|
|
apt-get update
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
build-essential cmake ninja-build meson pkg-config git ca-certificates \
|
|
curl file desktop-file-utils nodejs \
|
|
libegl-dev libxkbcommon-dev libdbus-1-dev libssl-dev \
|
|
libffi-dev libexpat1-dev
|
|
- name: Trust git repo
|
|
run: git config --global --add safe.directory '*'
|
|
- uses: actions/checkout@v4
|
|
- name: Cache CPM packages
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ${{ env.CPM_SOURCE_CACHE }}
|
|
key: ${{ runner.os }}-cpm-${{ hashFiles('**/vendor.cmake', '**/CMakeLists.txt') }}
|
|
restore-keys: ${{ runner.os }}-cpm-
|
|
- name: Build AppImage
|
|
run: profiler/appimage/build.sh
|
|
env:
|
|
GIT_REV: ${{ github.sha }}
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: appimage
|
|
path: profiler/build-appimage/tracy-profiler-x86_64.AppImage
|