-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (46 loc) · 1.84 KB
/
Copy pathbuild.yml
File metadata and controls
59 lines (46 loc) · 1.84 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
on:
workflow_dispatch:
push:
branches: ["**"]
paths-ignore:
- "**/*.md"
name: 🏗️ Build
jobs:
test:
strategy:
fail-fast: false
matrix:
type: [linux, windows, windows-static]
config: [Release]
include:
- type: linux
container: fedora:40
deps: sudo dnf install -y git cmake gcc gcc-c++ ninja-build ImageMagick ImageMagick-devel ImageMagick-c++-devel
- type: windows
deps: choco install --force -y -PackageParameters InstallDevelopmentHeaders=true imagemagick.app
- type: windows-static
cmake-args: -A x64 -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DMAGICK_ROOT=ImageMagick-Windows
deps: |
git clone https://github.com/simplytest/ImageMagick-Windows
cd ImageMagick-Windows
./CloneRepositories.IM7.cmd
# We could also invoke MS-Build to compile the libraries here, but this is quicker for now :)
Invoke-WebRequest "https://github.com/simplytest/ImageMagick-Windows/releases/download/v7.1.1/Artifacts.zip" -OutFile Artifacts.zip
Expand-Archive -Path Artifacts.zip -DestinationPath $PWD.Path
runs-on: ${{ contains(matrix.type, 'windows') && 'windows-latest' || 'ubuntu-latest' }}
container: ${{ matrix.container }}
name: "${{ matrix.type }} (⚙️: ${{ matrix.config }})"
steps:
- name: 📦 Checkout
uses: actions/checkout@v4
- name: 🧰 Dependencies
run: ${{ matrix.deps }}
- name: 🔧 Compile
run: |
cmake -B build ${{ matrix.cmake-args }}
cmake --build build --config ${{ matrix.config }}
- name: 📦 Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.type }}-${{ matrix.config }}
path: build