diff --git a/.github/workflows/ci-build-and-test.yml b/.github/workflows/ci-build-and-test.yml index 38ba8fe..ba99282 100644 --- a/.github/workflows/ci-build-and-test.yml +++ b/.github/workflows/ci-build-and-test.yml @@ -92,11 +92,6 @@ jobs: - name: Install Conan run: pip3 install conan==1.53.0 - - name: Install cmake - uses: ConorMacBride/install-package@v1.1.0 - with: - brew: cmake - - uses: actions/checkout@v3 - name: Install conan dependencies @@ -110,9 +105,34 @@ jobs: name: lottie-to-png.darwin.amd64 path: bin/lottie_to_png + test-darwin: + name: Test MacOS + needs: build-darwin + runs-on: macos-latest + strategy: + matrix: + case: + - lottie_to_apng + - lottie_to_gif + - lottie_to_png + - lottie_to_webp + steps: + - uses: actions/checkout@v3 + + - uses: actions/download-artifact@v3 + with: + name: lottie-to-png.darwin.amd64 + path: bin/lottie_to_png + + - name: Test + run: | + find /source -type f \( -iname \*.json -o -iname \*.lottie -o -iname \*.tgs \) | while IFS=$'\n' read -r FILE; do \ + echo Converting \${FILE}... && ./bin/${{ matrix.case }}.sh \${WIDTH:+--width \$WIDTH} \${HEIGHT:+--height \$HEIGHT} \${FPS:+--fps \$FPS} \${QUALITY:+--quality \$QUALITY} \$FILE && echo Done.; \ + done + release: needs: - - build-docker + - test-docker - build-darwin runs-on: ubuntu-latest strategy: @@ -145,9 +165,6 @@ jobs: uses: ncipollo/release-action@v1 with: artifacts: release-${{ matrix.platform }}.zip - body: body - name: test - tag: haha + name: ${{ github.ref }} allowUpdates: true - target_commitish: ${{ github.sha }} draft: true