Skip to content

Add ImageMagick so we can handle .pam files #4

Add ImageMagick so we can handle .pam files

Add ImageMagick so we can handle .pam files #4

Workflow file for this run

name: Build Release
on: [ push, pull_request ]
jobs:
create-release:
runs-on: 'ubuntu-22.04'
outputs:
upload_url: ${{ steps.create-release.outputs.upload_url }}
steps:
- name: Create Release
id: create-release
if: startsWith(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
omitBody: true
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}
build:
runs-on: ${{ matrix.os }}
needs: create-release
strategy:
fail-fast: false
matrix:
# Game Jolt: We are only interested in a few specific platforms.
# os: [ ubuntu-22.04 ]
# platform:
# - 'linux-x64'
# - 'linux-armv6'
# - 'linux-armv7'
# - 'linuxmusl-x64'
# - 'linuxmusl-arm64v8'
# - 'linux-s390x'
# - 'wasm32'
# - 'win32-ia32'
# - 'win32-x64'
# - 'win32-arm64v8'
# include:
# - os: macos-11
# platform: 'darwin-x64'
# - os: macos-11
# platform: 'darwin-arm64v8'
include:
- os: ubuntu-22.04
platform: 'linux-x64'
- os: buildjet-4vcpu-ubuntu-2204-arm
platform: 'linux-arm64v8'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: |
pip3 install meson ninja
brew install automake nasm pkg-config
- name: Build ${{ matrix.platform }}
id: build-release
run: ./build.sh $(cat LIBVIPS_VERSION) ${{ matrix.platform }}
- name: Generate integrity checksums
id: integrity
run: ./integrity.sh
- name: Upload Release Asset (.tar.gz)
id: upload-release-asset-gz
if: startsWith(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: libvips-*-${{ matrix.platform }}.tar.gz
artifactContentType: application/gzip
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Release Asset (.integrity)
id: upload-release-asset-integrity
if: startsWith(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "*.integrity"
artifactContentType: text/plain
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}