mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
ci: clean artifacts, move flatpak to release tip
This commit is contained in:
17
.github/workflows/clean-artifacts.yml
vendored
Normal file
17
.github/workflows/clean-artifacts.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: Clean Artifacts
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
# Every 6 hours
|
||||||
|
- cron: '0 */6 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
remove-old-artifacts:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
|
steps:
|
||||||
|
- name: Remove old artifacts
|
||||||
|
uses: c-hive/gha-remove-artifacts@v1
|
||||||
|
with:
|
||||||
|
age: '1 week'
|
||||||
|
skip-tags: true
|
||||||
|
skip-recent: 5
|
36
.github/workflows/flatpak.yml
vendored
36
.github/workflows/flatpak.yml
vendored
@ -1,36 +0,0 @@
|
|||||||
on: [push]
|
|
||||||
|
|
||||||
name: Flatpak
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
flatpak:
|
|
||||||
name: "Flatpak"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: bilelmoussaoui/flatpak-github-actions:gnome-43
|
|
||||||
options: --privileged
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
arch: [x86_64, aarch64]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
fetch-depth: 0
|
|
||||||
# Docker is required by the docker/setup-qemu-action which enables emulation
|
|
||||||
- name: Install deps
|
|
||||||
run: |
|
|
||||||
dnf -y install docker
|
|
||||||
- name: Set up QEMU
|
|
||||||
id: qemu
|
|
||||||
uses: docker/setup-qemu-action@v1
|
|
||||||
with:
|
|
||||||
platforms: arm64
|
|
||||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v4
|
|
||||||
with:
|
|
||||||
bundle: ghostty.flatpak
|
|
||||||
manifest-path: com.mitchellh.ghostty.yml
|
|
||||||
branch: tip
|
|
||||||
cache-key: flatpak-builder-${{ matrix.arch }}-${{ github.sha }}-v1
|
|
||||||
arch: ${{ matrix.arch }}
|
|
44
.github/workflows/release-tip.yml
vendored
44
.github/workflows/release-tip.yml
vendored
@ -9,6 +9,50 @@ on:
|
|||||||
name: Release Tip
|
name: Release Tip
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
flatpak:
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: bilelmoussaoui/flatpak-github-actions:gnome-43
|
||||||
|
options: --privileged
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
arch: [x86_64, aarch64]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
fetch-depth: 0
|
||||||
|
# Docker is required by the docker/setup-qemu-action which enables emulation
|
||||||
|
- name: Install deps
|
||||||
|
run: |
|
||||||
|
dnf -y install docker
|
||||||
|
- name: Set up QEMU
|
||||||
|
id: qemu
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
with:
|
||||||
|
platforms: arm64
|
||||||
|
|
||||||
|
- uses: flatpak/flatpak-github-actions/flatpak-builder@v4
|
||||||
|
with:
|
||||||
|
bundle: ghostty.flatpak
|
||||||
|
manifest-path: com.mitchellh.ghostty.yml
|
||||||
|
branch: tip
|
||||||
|
cache-key: flatpak-builder-${{ matrix.arch }}-${{ github.sha }}-v1
|
||||||
|
arch: ${{ matrix.arch }}
|
||||||
|
|
||||||
|
- name: Rename Bundle
|
||||||
|
run: mv ghostty.flatpak ghostty-${{ matrix.arch }}.flatpak
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
name: "Ghostty Tip (\"Nightly\")"
|
||||||
|
prerelease: true
|
||||||
|
tag_name: tip
|
||||||
|
target_commitish: ${{ github.sha }}
|
||||||
|
files: ghostty-${{ matrix.arch }}.flatpak
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
||||||
runs-on: macos-12
|
runs-on: macos-12
|
||||||
|
Reference in New Issue
Block a user