Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-asriyan committed Oct 23, 2023
1 parent 21b65cb commit 38808ce
Showing 1 changed file with 31 additions and 38 deletions.
69 changes: 31 additions & 38 deletions .github/workflows/ci-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
matrix:
platform:
- amd64
# - arm64
- arm64
env:
DOCKER_BUILDKIT: 1
steps:
Expand Down Expand Up @@ -57,6 +57,18 @@ jobs:
with:
image: lottie-to-webp:${{ matrix.platform }}

- name: Extract executable
run: |
id=$(docker create lottie-to-png:${{ matrix.platform }}) &&
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: lottie-to-png.linux.${{ matrix.platform }}
path: bin/lottie_to_png

test-docker:
name: Run tests
needs: build-docker
Expand All @@ -70,7 +82,7 @@ jobs:
- webp
platform:
- amd64
# - arm64
- arm64
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -181,10 +193,10 @@ jobs:
run: cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt && cmake --build . --config Release
continue-on-error: true

- name: Upload artifact
- name: Upload executable as artifact
uses: actions/upload-artifact@v3
with:
name: lottie-to-png.win.amd64.exe
name: lottie-to-png.windows.amd64.exe
path: bin/Release/lottie_to_png.exe

test-windows:
Expand All @@ -209,7 +221,7 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: lottie-to-png.win.amd64.exe
name: lottie-to-png.windows.amd64.exe
path: bin

- name: Run tests
Expand All @@ -227,31 +239,30 @@ jobs:
name: test-results.windows.amd64.${{ matrix.case }}
path: test-files

release-linux:
name: Release linux executables
release:
name: Release executables
needs:
- test-darwin
- test-windows
- test-docker
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- amd64
- arm64
file:
- linux.amd64
- linux.arm64
- darwin.amd64
- windows.amd64.exe
env:
filename: lottie-converter.linux.${{ matrix.platform }}.zip
filename: lottie-converter.${{ matrix.file }}.zip
steps:
- name: Download image as artefact
uses: ishworkh/[email protected]
with:
image: lottie-to-png:${{ matrix.platform }}

- uses: actions/checkout@v3

- name: Extract
run: |
id=$(docker create lottie-to-png:${{ matrix.platform }}) &&
docker cp $id:/usr/bin/lottie_to_png bin/ &&
docker rm -v $id
uses: dawidd6/action-download-artifact@v2
with:
name: lottie-to-png.${{ matrix.file }}
path: bin

- name: Archive Release
uses: thedoctor0/[email protected]
Expand All @@ -265,21 +276,3 @@ jobs:
with:
files: ${{ env.filename }}
draft: true

release-darwin:
name: Release darwin executables
needs:
- test-darwin
runs-on: ubuntu-latest
steps:
- name: Extract
run: echo stub

release-windows:
name: Release windows executables
needs:
- test-windows
runs-on: ubuntu-latest
steps:
- name: Extract
run: echo stub

0 comments on commit 38808ce

Please sign in to comment.