forked from lovell/sharp-libvips
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (62 loc) · 1.69 KB
/
ci.yml
File metadata and controls
62 lines (62 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI
on:
- push
- pull_request
permissions: {}
jobs:
build:
permissions:
contents: read
name: build-${{ matrix.platform }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: 'ubuntu-24.04'
platform: 'linux-x64'
- os: 'ubuntu-24.04'
platform: 'win32-ia32'
- os: 'ubuntu-24.04'
platform: 'win32-x64'
- os: 'ubuntu-24.04'
platform: 'win32-arm64v8'
- os: 'macos-15-intel'
platform: 'darwin-x64'
- os: 'macos-15'
platform: 'darwin-arm64v8'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: |
pipx install meson
brew install automake nasm
- name: Build ${{ matrix.platform }}
run: ./build.sh ${{ matrix.platform }}
- name: Upload ${{ matrix.platform }} artifact
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.platform }}
path: '*.tar.gz'
compression-level: 0
retention-days: 1
if-no-files-found: error
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Create GitHub release for tag
uses: ncipollo/release-action@v1
with:
artifacts: '*.tar.gz'
artifactContentType: application/gzip
prerelease: true