chore: bump plugin versions to 0.1.2 and refactor CI workflow to use sequential plugin processing
Release / check-release (push) Successful in 18s
Release / build (push) Skipped
Release / package (deb) (push) Skipped
Release / package (rpm) (push) Skipped
Release / publish (push) Skipped
CI / test (push) Successful in 1m38s
Plugin Releases / build-package-publish (push) Failing after 4m59s
Release / check-release (push) Successful in 18s
Release / build (push) Skipped
Release / package (deb) (push) Skipped
Release / package (rpm) (push) Skipped
Release / publish (push) Skipped
CI / test (push) Successful in 1m38s
Plugin Releases / build-package-publish (push) Failing after 4m59s
This commit is contained in:
1 parent
080af6a0f1
commit
46cacdcabc
11 files changed
+67
-57
No files matched your search
@@ -10,36 +10,7 @@ env:
|
|||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
detect:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
matrix: ${{ steps.plugins.outputs.matrix }}
|
|
||||||
count: ${{ steps.plugins.outputs.count }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
|
||||||
- name: Install discovery tools
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y jq
|
|
||||||
- name: Discover changed plugins
|
|
||||||
id: plugins
|
|
||||||
env:
|
|
||||||
BEFORE: ${{ gitea.event.before }}
|
|
||||||
AFTER: ${{ gitea.sha }}
|
|
||||||
run: |
|
|
||||||
matrix=$(packaging/changed-plugins.sh "$BEFORE" "$AFTER")
|
|
||||||
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
|
|
||||||
echo "count=$(jq '.["include"] | length' <<<"$matrix")" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
build-package-publish:
|
build-package-publish:
|
||||||
needs: detect
|
|
||||||
if: needs.detect.outputs.count != '0'
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix: ${{ fromJSON(needs.detect.outputs.matrix) }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -51,35 +22,72 @@ jobs:
|
|||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
targets: x86_64-unknown-linux-gnu
|
targets: x86_64-unknown-linux-gnu
|
||||||
|
- name: Install discovery tools
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y jq
|
||||||
|
- name: Discover changed plugins
|
||||||
|
id: plugins
|
||||||
|
env:
|
||||||
|
BEFORE: ${{ gitea.event.before }}
|
||||||
|
AFTER: ${{ gitea.sha }}
|
||||||
|
run: |
|
||||||
|
packaging/changed-plugins.sh "$BEFORE" "$AFTER" > .plugin-release-plan.json
|
||||||
|
jq . .plugin-release-plan.json
|
||||||
|
echo "count=$(jq '.["include"] | length' .plugin-release-plan.json)" >> "$GITHUB_OUTPUT"
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
if: steps.plugins.outputs.count != '0'
|
||||||
- name: Test plugin
|
- name: Test plugin
|
||||||
env:
|
if: steps.plugins.outputs.count != '0'
|
||||||
CONVERTIS_ENGINE_VERSION: ${{ matrix.engine_version }}
|
run: |
|
||||||
run: cargo test --locked --manifest-path "${{ matrix.manifest }}"
|
while IFS= read -r plugin; do
|
||||||
|
manifest=$(jq -r '.manifest' <<<"$plugin")
|
||||||
|
engine_version=$(jq -r '.engine_version' <<<"$plugin")
|
||||||
|
echo "Testing $manifest for engine $engine_version"
|
||||||
|
CONVERTIS_ENGINE_VERSION="$engine_version" \
|
||||||
|
cargo test --locked --manifest-path "$manifest"
|
||||||
|
done < <(jq -c '.["include"][]' .plugin-release-plan.json)
|
||||||
- name: Build plugin
|
- name: Build plugin
|
||||||
env:
|
if: steps.plugins.outputs.count != '0'
|
||||||
CONVERTIS_ENGINE_VERSION: ${{ matrix.engine_version }}
|
run: |
|
||||||
run: cargo build --release --locked --manifest-path "${{ matrix.manifest }}" --target x86_64-unknown-linux-gnu
|
mkdir -p plugin-artifacts
|
||||||
|
while IFS= read -r plugin; do
|
||||||
|
manifest=$(jq -r '.manifest' <<<"$plugin")
|
||||||
|
engine_version=$(jq -r '.engine_version' <<<"$plugin")
|
||||||
|
library=$(jq -r '.library' <<<"$plugin")
|
||||||
|
echo "Building $manifest for engine $engine_version"
|
||||||
|
CONVERTIS_ENGINE_VERSION="$engine_version" \
|
||||||
|
cargo build --release --locked --manifest-path "$manifest" --target x86_64-unknown-linux-gnu
|
||||||
|
cp "target/x86_64-unknown-linux-gnu/release/$library" plugin-artifacts/
|
||||||
|
done < <(jq -c '.["include"][]' .plugin-release-plan.json)
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
|
if: steps.plugins.outputs.count != '0'
|
||||||
with:
|
with:
|
||||||
go-version: stable
|
go-version: stable
|
||||||
- name: Install packaging tools
|
- name: Install packaging tools
|
||||||
|
if: steps.plugins.outputs.count != '0'
|
||||||
run: |
|
run: |
|
||||||
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@v2.47.0
|
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@v2.47.0
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y rpm
|
sudo apt-get install -y rpm
|
||||||
- name: Build plugin packages
|
- name: Build plugin packages
|
||||||
|
if: steps.plugins.outputs.count != '0'
|
||||||
run: |
|
run: |
|
||||||
export PATH="$HOME/go/bin:$PATH"
|
export PATH="$HOME/go/bin:$PATH"
|
||||||
packaging/build-plugin-package.sh deb "${{ matrix.manifest }}" target/x86_64-unknown-linux-gnu/release dist
|
while IFS= read -r plugin; do
|
||||||
packaging/build-plugin-package.sh rpm "${{ matrix.manifest }}" target/x86_64-unknown-linux-gnu/release dist
|
manifest=$(jq -r '.manifest' <<<"$plugin")
|
||||||
|
packaging/build-plugin-package.sh deb "$manifest" target/x86_64-unknown-linux-gnu/release dist
|
||||||
|
packaging/build-plugin-package.sh rpm "$manifest" target/x86_64-unknown-linux-gnu/release dist
|
||||||
|
done < <(jq -c '.["include"][]' .plugin-release-plan.json)
|
||||||
- name: Import GPG key
|
- name: Import GPG key
|
||||||
|
if: steps.plugins.outputs.count != '0'
|
||||||
id: import-gpg
|
id: import-gpg
|
||||||
uses: crazy-max/ghaction-import-gpg@v6
|
uses: crazy-max/ghaction-import-gpg@v6
|
||||||
with:
|
with:
|
||||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
||||||
- name: Sign and verify RPM
|
- name: Sign and verify RPM
|
||||||
|
if: steps.plugins.outputs.count != '0'
|
||||||
env:
|
env:
|
||||||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||||
run: |
|
run: |
|
||||||
@@ -98,13 +106,15 @@ jobs:
|
|||||||
sudo rpm --import "$public_key_file"
|
sudo rpm --import "$public_key_file"
|
||||||
rpm --checksig --verbose dist/*.rpm | grep -Eq '[Ss]ignature.*: OK'
|
rpm --checksig --verbose dist/*.rpm | grep -Eq '[Ss]ignature.*: OK'
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
|
if: steps.plugins.outputs.count != '0'
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.package }}-${{ matrix.version }}
|
name: plugin-packages
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
path: |
|
path: |
|
||||||
target/x86_64-unknown-linux-gnu/release/${{ matrix.library }}
|
plugin-artifacts/*
|
||||||
dist/*
|
dist/*
|
||||||
- name: Publish plugin packages to Gitea
|
- name: Publish plugin packages to Gitea
|
||||||
|
if: steps.plugins.outputs.count != '0'
|
||||||
env:
|
env:
|
||||||
GITEA_URL: ${{ gitea.server_url }}
|
GITEA_URL: ${{ gitea.server_url }}
|
||||||
GITEA_OWNER: ${{ gitea.repository_owner }}
|
GITEA_OWNER: ${{ gitea.repository_owner }}
|
||||||
|
|||||||
Generated
+9
-9
@@ -330,14 +330,14 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "convertis-ffmpeg-audio"
|
name = "convertis-ffmpeg-audio"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"convertis-plugin-api",
|
"convertis-plugin-api",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "convertis-ffmpeg-frames-to-video"
|
name = "convertis-ffmpeg-frames-to-video"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"convertis-plugin-api",
|
"convertis-plugin-api",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -346,14 +346,14 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "convertis-ffmpeg-video"
|
name = "convertis-ffmpeg-video"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"convertis-plugin-api",
|
"convertis-plugin-api",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "convertis-ffmpeg-video-to-frames"
|
name = "convertis-ffmpeg-video-to-frames"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"convertis-plugin-api",
|
"convertis-plugin-api",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -362,14 +362,14 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "convertis-graphicsmagick"
|
name = "convertis-graphicsmagick"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"convertis-plugin-api",
|
"convertis-plugin-api",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "convertis-html"
|
name = "convertis-html"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64",
|
"base64",
|
||||||
"convertis-plugin-api",
|
"convertis-plugin-api",
|
||||||
@@ -378,7 +378,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "convertis-image-ascii"
|
name = "convertis-image-ascii"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"convertis-plugin-api",
|
"convertis-plugin-api",
|
||||||
"image",
|
"image",
|
||||||
@@ -386,14 +386,14 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "convertis-imagemagick"
|
name = "convertis-imagemagick"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"convertis-plugin-api",
|
"convertis-plugin-api",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "convertis-native-image"
|
name = "convertis-native-image"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"convertis-plugin-api",
|
"convertis-plugin-api",
|
||||||
"image",
|
"image",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "convertis-ffmpeg-audio"
|
name = "convertis-ffmpeg-audio"
|
||||||
build = "../../plugin-build.rs"
|
build = "../../plugin-build.rs"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
description = "FFmpeg audio plugin for Convertis"
|
description = "FFmpeg audio plugin for Convertis"
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "convertis-ffmpeg-frames-to-video"
|
name = "convertis-ffmpeg-frames-to-video"
|
||||||
build = "../../plugin-build.rs"
|
build = "../../plugin-build.rs"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
description = "FFmpeg frames-to-video plugin for Convertis"
|
description = "FFmpeg frames-to-video plugin for Convertis"
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "convertis-ffmpeg-video-to-frames"
|
name = "convertis-ffmpeg-video-to-frames"
|
||||||
build = "../../plugin-build.rs"
|
build = "../../plugin-build.rs"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
description = "FFmpeg video-to-frames plugin for Convertis"
|
description = "FFmpeg video-to-frames plugin for Convertis"
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "convertis-ffmpeg-video"
|
name = "convertis-ffmpeg-video"
|
||||||
build = "../../plugin-build.rs"
|
build = "../../plugin-build.rs"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
description = "FFmpeg video plugin for Convertis"
|
description = "FFmpeg video plugin for Convertis"
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "convertis-graphicsmagick"
|
name = "convertis-graphicsmagick"
|
||||||
build = "../../plugin-build.rs"
|
build = "../../plugin-build.rs"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
description = "GraphicsMagick plugin for Convertis"
|
description = "GraphicsMagick plugin for Convertis"
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "convertis-html"
|
name = "convertis-html"
|
||||||
build = "../../plugin-build.rs"
|
build = "../../plugin-build.rs"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
description = "Self-contained HTML plugin for Convertis"
|
description = "Self-contained HTML plugin for Convertis"
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "convertis-image-ascii"
|
name = "convertis-image-ascii"
|
||||||
build = "../../plugin-build.rs"
|
build = "../../plugin-build.rs"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
description = "Image-to-ASCII plugin for Convertis"
|
description = "Image-to-ASCII plugin for Convertis"
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "convertis-imagemagick"
|
name = "convertis-imagemagick"
|
||||||
build = "../../plugin-build.rs"
|
build = "../../plugin-build.rs"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
description = "ImageMagick plugin for Convertis"
|
description = "ImageMagick plugin for Convertis"
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "convertis-native-image"
|
name = "convertis-native-image"
|
||||||
build = "../../plugin-build.rs"
|
build = "../../plugin-build.rs"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
description = "Native common-image plugin for Convertis"
|
description = "Native common-image plugin for Convertis"
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
|
|||||||
Reference in new issue
Block a user