Merge branch 'dev' into ci-maint
This commit is contained in:
52
.github/workflows/appimage.yml
vendored
52
.github/workflows/appimage.yml
vendored
@@ -11,6 +11,9 @@ on:
|
||||
- dev
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
publish_pre_dev_labels: '[]'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -29,7 +32,21 @@ jobs:
|
||||
echo "Running apt update."
|
||||
sudo apt update
|
||||
echo "Installing dependencies with apt."
|
||||
DEBIAN_FRONTEND=noninteractive sudo apt install -y cmake libgtk-3-dev libgtkmm-3.0-dev liblensfun-dev librsvg2-dev liblcms2-dev libfftw3-dev libiptcdata0-dev libtiff5-dev libcanberra-gtk3-dev liblensfun-bin
|
||||
DEBIAN_FRONTEND=noninteractive sudo apt install -y cmake libgtk-3-dev libgtkmm-3.0-dev liblensfun-dev librsvg2-dev liblcms2-dev libfftw3-dev libiptcdata0-dev libtiff5-dev libcanberra-gtk3-dev liblensfun-bin libexpat1-dev libbrotli-dev zlib1g-dev libinih-dev
|
||||
|
||||
- name: Install Exiv2
|
||||
run: |
|
||||
EXIV2_VERSION='v0.28.0'
|
||||
echo "Cloning Exiv2 $EXIV2_VERSION."
|
||||
git clone --depth 1 --branch "$EXIV2_VERSION" https://github.com/Exiv2/exiv2.git ext/exiv2
|
||||
|
||||
echo "Configuring build."
|
||||
mkdir ext/exiv2/build
|
||||
cd ext/exiv2/build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DEXIV2_ENABLE_BMFF=ON ..
|
||||
|
||||
echo "Building and installing."
|
||||
sudo make -j$(nproc) install
|
||||
|
||||
- name: Configure build
|
||||
run: |
|
||||
@@ -112,6 +129,9 @@ jobs:
|
||||
- name: Package AppImage
|
||||
working-directory: ./build
|
||||
run: |
|
||||
echo "LD_LIBRARY_PATH is '$LD_LIBRARY_PATH'. Adding /usr/local/lib."
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
|
||||
|
||||
echo "Creating artifact name."
|
||||
if [ '${{github.ref_type}}' == 'tag' ]; then
|
||||
ARTIFACT_NAME="RawTherapee_${REF_NAME_FILTERED}_${{matrix.build_type}}"
|
||||
@@ -168,3 +188,33 @@ jobs:
|
||||
files: |
|
||||
${{env.PUBLISH_NAME}}.AppImage
|
||||
${{env.PUBLISH_NAME}}-AboutThisBuild.txt
|
||||
|
||||
- name: Prepare for publishing pre-dev
|
||||
id: prepare-publish-pre-dev
|
||||
if: ${{github.event_name == 'pull_request' && contains(fromJSON(env.publish_pre_dev_labels), github.event.pull_request.head.label)}}
|
||||
run: |
|
||||
echo "Making ref name."
|
||||
REF_NAME_FILTERED="$(echo '${{github.event.pull_request.head.label}}' | tr ':' '_' | sed 's/[^A-z0-9_.-]//g')"
|
||||
echo "Ref name is '$REF_NAME_FILTERED'."
|
||||
|
||||
echo "Setting publish name."
|
||||
PUBLISH_NAME="RawTherapee_${REF_NAME_FILTERED}_${{matrix.build_type}}"
|
||||
echo "Publish name is '$PUBLISH_NAME'."
|
||||
|
||||
echo "Renaming AppImage."
|
||||
cp "build/$ARTIFACT_NAME.AppImage" "$PUBLISH_NAME.AppImage"
|
||||
|
||||
echo "Creating version file."
|
||||
cp "build/AboutThisBuild.txt" "$PUBLISH_NAME-AppImage-AboutThisBuild.txt"
|
||||
|
||||
echo "Recording publish name."
|
||||
echo "PUBLISH_NAME=$PUBLISH_NAME" >> $GITHUB_ENV
|
||||
|
||||
- name: Publish pre-dev artifacts
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: ${{steps.prepare-publish-pre-dev.outcome == 'success'}}
|
||||
with:
|
||||
tag_name: pre-dev-github-actions
|
||||
files: |
|
||||
${{env.PUBLISH_NAME}}.AppImage
|
||||
${{env.PUBLISH_NAME}}-AppImage-AboutThisBuild.txt
|
||||
|
||||
Reference in New Issue
Block a user