From 7ef38f8036bb292e3e80869c749a32ab8dfd2116 Mon Sep 17 00:00:00 2001 From: Ed Asriyan Date: Wed, 18 Oct 2023 22:53:03 +0300 Subject: [PATCH] jj --- .github/workflows/ci-build-and-test.yml | 67 +++++++++++++++++++++++-- README.md | 2 +- 2 files changed, 64 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-build-and-test.yml b/.github/workflows/ci-build-and-test.yml index d4ff001..69ed714 100644 --- a/.github/workflows/ci-build-and-test.yml +++ b/.github/workflows/ci-build-and-test.yml @@ -184,8 +184,8 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v3 with: - name: lottie-to-png.win.amd64 - path: . + name: lottie-to-png.win.amd64.exe + path: bin/Release/lottie_to_png.exe - name: Upload test results as artifacts uses: actions/upload-artifact@v3 @@ -193,10 +193,51 @@ jobs: name: test-results.windows.amd64.${{ matrix.case }} path: test-files - release: + test-windows: + name: Test Windows + needs: build-windows + runs-on: windows-latest + strategy: + matrix: + case: + - apng + - gif + - png + - webp + steps: + - uses: actions/checkout@v3 + + - name: Install run-time dependencies + run: | + [[ "${{ matrix.case }}" == "apng" ]] && winget install ffmpeg || echo ok; + [[ "${{ matrix.case }}" == "gif" ]] && cargo install gifski || echo ok; + [[ "${{ matrix.case }}" == "webp" ]] && brew install webp || echo ok; + + - name: Download artifact + uses: actions/download-artifact@v3 + with: + name: lottie-to-png.windows.amd64.exe + path: bin + + - name: Run tests + run: | + chmod +x bin/lottie_to_png && \ + bash -c "\ + find test-files -type f \( -iname \*.json -o -iname \*.lottie -o -iname \*.tgs \) | while IFS=$'\n' read -r FILE; do \ + echo Converting \${FILE}... && sh ./bin/lottie_to_${{ matrix.case }}.sh \$FILE && echo Done.; \ + done \ + " + + - name: Upload test results as artifacts + uses: actions/upload-artifact@v3 + with: + name: test-results.windows.amd64.${{ matrix.case }} + path: test-files + + release-linux: + name: Release linux executables needs: - test-docker - - test-darwin runs-on: ubuntu-latest strategy: matrix: @@ -231,3 +272,21 @@ jobs: name: ${{ github.ref }} allowUpdates: true 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 diff --git a/README.md b/README.md index a777cf6..1f68025 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ Results will be saved next to each source file in the same directory. ``` 2. Build ```commandline - cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt && cmake --build . + cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt && cmake --build . --config Release ```
M1 troubleshooting