2024-08-03 03:01:02 -07:00
|
|
|
name: Package
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
version:
|
|
|
|
description: Source Git package version
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
jobs:
|
|
|
|
windows-portable:
|
|
|
|
name: Package portable Windows app
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
runtime: [win-x64, win-arm64]
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Download build
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
with:
|
|
|
|
name: sourcegit.${{ matrix.runtime }}
|
|
|
|
path: build/SourceGit
|
|
|
|
- name: Package
|
|
|
|
env:
|
|
|
|
VERSION: ${{ inputs.version }}
|
|
|
|
RUNTIME: ${{ matrix.runtime }}
|
2024-08-14 01:32:58 -07:00
|
|
|
run: ./build/scripts/package.windows-portable.sh
|
2024-08-03 03:01:02 -07:00
|
|
|
- name: Upload package artifact
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: package.${{ matrix.runtime }}
|
|
|
|
path: build/sourcegit_*.zip
|
|
|
|
osx-app:
|
|
|
|
name: Package OSX app
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
runtime: [osx-x64, osx-arm64]
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Download build
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
with:
|
|
|
|
name: sourcegit.${{ matrix.runtime }}
|
2024-08-19 06:27:09 -07:00
|
|
|
path: build
|
2024-08-03 03:01:02 -07:00
|
|
|
- name: Package
|
|
|
|
env:
|
|
|
|
VERSION: ${{ inputs.version }}
|
|
|
|
RUNTIME: ${{ matrix.runtime }}
|
2024-08-19 06:27:09 -07:00
|
|
|
run: |
|
|
|
|
mkdir build/SourceGit
|
|
|
|
tar -xf "build/sourcegit.${{ matrix.runtime }}.tar" -C build/SourceGit
|
|
|
|
./build/scripts/package.osx-app.sh
|
2024-08-03 03:01:02 -07:00
|
|
|
- name: Upload package artifact
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: package.${{ matrix.runtime }}
|
|
|
|
path: build/sourcegit_*.zip
|
|
|
|
linux:
|
|
|
|
name: Package Linux
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-08-12 23:47:59 -07:00
|
|
|
runtime: [linux-x64, linux-arm64]
|
2024-08-03 03:01:02 -07:00
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Download package dependencies
|
|
|
|
run: |
|
|
|
|
sudo add-apt-repository universe
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install desktop-file-utils rpm libfuse2
|
|
|
|
- name: Download build
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
with:
|
|
|
|
name: sourcegit.${{ matrix.runtime }}
|
2024-08-03 06:50:57 -07:00
|
|
|
path: build
|
2024-08-03 03:01:02 -07:00
|
|
|
- name: Package
|
|
|
|
env:
|
|
|
|
VERSION: ${{ inputs.version }}
|
|
|
|
RUNTIME: ${{ matrix.runtime }}
|
2024-08-03 06:50:57 -07:00
|
|
|
run: |
|
|
|
|
mkdir build/SourceGit
|
|
|
|
tar -xf "build/sourcegit.${{ matrix.runtime }}.tar" -C build/SourceGit
|
2024-08-14 01:32:58 -07:00
|
|
|
./build/scripts/package.linux.sh
|
2024-08-03 03:01:02 -07:00
|
|
|
- name: Upload package artifacts
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: package.${{ matrix.runtime }}
|
|
|
|
path: |
|
|
|
|
build/sourcegit-*.AppImage
|
|
|
|
build/sourcegit_*.deb
|
|
|
|
build/sourcegit-*.rpm
|