-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb6fc19
commit 551a7c5
Showing
7 changed files
with
338 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build for Darwin | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
output-artifact-name: | ||
description: Name of artifact as which Darwin executable to be uploaded | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build-darwin: | ||
name: Build MacOS executable | ||
runs-on: macos-latest | ||
steps: | ||
- name: Install Conan | ||
run: pip3 install conan==2.0.10 | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Detect conan profile | ||
run: conan profile detect | ||
|
||
- name: Install conan dependencies | ||
run: conan install . --build=missing -s build_type=Release | ||
|
||
- name: Invoke 'conan-release' preset | ||
run: cmake --preset conan-release | ||
|
||
- name: Build the app | ||
run: cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt && cmake --build . --config Release | ||
|
||
- name: Upload executable as artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.output-artifact-name }} | ||
path: bin/lottie_to_png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Build for Linux & Docker | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
output-artifact-name: | ||
description: Name of artifact as which Docker image to be uploaded | ||
required: true | ||
type: string | ||
arch: | ||
description: "amd64 or arm64" | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build-docker: | ||
name: Build linux and docker images | ||
runs-on: ubuntu-latest | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker caching | ||
uses: jpribyl/[email protected] | ||
continue-on-error: true | ||
|
||
- name: Build lottie-to-apng | ||
run: docker build -t lottie-to-apng:${{ inputs.arch }} --target lottie-to-apng --platform ${{ inputs.arch }} . | ||
|
||
- name: Upload lottie-to-apng as artifact | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: lottie-to-apng:${{ inputs.arch }} | ||
|
||
- name: Build lottie-to-gif | ||
run: docker build -t lottie-to-gif:${{ inputs.arch }} --target lottie-to-gif --platform ${{ inputs.arch }} . | ||
|
||
- name: Upload lottie-to-gif as artifact | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: lottie-to-gif:${{ inputs.arch }} | ||
|
||
- name: Build lottie-to-png | ||
run: docker build -t lottie-to-png:${{ inputs.arch }} --target lottie-to-png --platform ${{ inputs.arch }} . | ||
|
||
- name: Upload lottie-to-png as artifact | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: lottie-to-png:${{ inputs.arch }} | ||
|
||
- name: Build lottie-to-webp | ||
run: docker build -t lottie-to-webp:${{ inputs.arch }} --target lottie-to-webp --platform ${{ inputs.arch }} . | ||
|
||
- name: Upload lottie-to-webp as artifact | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: lottie-to-webp:${{ inputs.arch }} | ||
|
||
- name: Extract executable | ||
run: | | ||
id=$(docker create lottie-to-png:${{ inputs.arch }}) && | ||
docker cp $id:/usr/bin/lottie_to_png bin/ && | ||
docker rm -v $id | ||
- name: Upload executable as artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.output-artifact-name }} | ||
path: bin/lottie_to_png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build for Windows | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
output-artifact-name: | ||
description: Name of artifact as which Windows executable to be uploaded | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build-windows: | ||
name: Build Windows executable | ||
runs-on: windows-latest | ||
steps: | ||
- name: Install Conan | ||
run: pip3 install conan==2.0.10 | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Detect conan profile | ||
run: conan profile detect | ||
|
||
- name: Install conan dependencies | ||
run: conan install . --build=missing -s build_type=Release | ||
|
||
- name: Invoke 'conan-default' preset | ||
run: cmake --preset conan-default | ||
|
||
- name: Build the app | ||
run: cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt && cmake --build . --config Release | ||
|
||
- name: Upload executable as artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.output-artifact-name }} | ||
path: bin/Release/lottie_to_png.exe |
Oops, something went wrong.