forked from darktable-org/darktable
-
Notifications
You must be signed in to change notification settings - Fork 0
119 lines (117 loc) · 4.1 KB
/
nightly.yml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: Nightly PKG
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
Win64:
if: github.repository == 'darktable-org/darktable' || github.event_name == 'workflow_dispatch'
name: Nightly darktable.${{ github.sha }}.win64
runs-on: windows-latest
strategy:
fail-fast: true
matrix:
btype: [Release]
compiler:
- { compiler: GNU, CC: gcc, CXX: g++ }
eco: [-DBINARY_PACKAGE_BUILD=ON]
target: [skiptest]
defaults:
run:
shell: msys2 {0}
env:
CC: ${{ matrix.compiler.CC }}
CXX: ${{ matrix.compiler.CXX }}
SRC_DIR: ${{ github.workspace }}/src
BUILD_DIR: ${{ github.workspace }}/build
INSTALL_PREFIX: ${{ github.workspace }}/install
ECO: ${{ matrix.eco }}
CMAKE_BUILD_TYPE: ${{ matrix.btype }}
GENERATOR: 'MSYS Makefiles'
TARGET: ${{ matrix.target }}
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
install: >-
pacman-mirrors
bash
curl
git
base-devel
intltool
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-gcc
mingw-w64-x86_64-clang
mingw-w64-x86_64-openmp
mingw-w64-x86_64-cmake
mingw-w64-x86_64-cmocka
mingw-w64-x86_64-ninja
mingw-w64-x86_64-libxml2
mingw-w64-x86_64-pugixml
mingw-w64-x86_64-libjpeg-turbo
mingw-w64-x86_64-zlib
mingw-w64-x86_64-exiv2
mingw-w64-x86_64-lcms2
mingw-w64-x86_64-lensfun
mingw-w64-x86_64-dbus-glib
mingw-w64-x86_64-openexr
mingw-w64-x86_64-sqlite3
mingw-w64-x86_64-libxslt
mingw-w64-x86_64-libsoup
mingw-w64-x86_64-libavif
mingw-w64-x86_64-libwebp
mingw-w64-x86_64-libsecret
mingw-w64-x86_64-lua
mingw-w64-x86_64-graphicsmagick
mingw-w64-x86_64-openjpeg2
mingw-w64-x86_64-gtk3
mingw-w64-x86_64-pugixml
mingw-w64-x86_64-libexif
mingw-w64-x86_64-osm-gps-map
mingw-w64-x86_64-libgphoto2
mingw-w64-x86_64-drmingw
mingw-w64-x86_64-gettext
mingw-w64-x86_64-python3
mingw-w64-x86_64-iso-codes
mingw-w64-x86_64-python3-jsonschema
mingw-w64-x86_64-python3-six
mingw-w64-x86_64-python3-setuptools
mingw-w64-x86_64-gmic
mingw-w64-x86_64-nsis
update: true
- uses: actions/checkout@v2
with:
submodules: true
path: src
- name: Build and Install
run: |
cmake -E make_directory "${BUILD_DIR}"
cmake -E make_directory "${INSTALL_PREFIX}"
$(cygpath ${SRC_DIR})/.ci/ci-script.sh
- name: Check if it runs
run: |
$(cygpath ${INSTALL_PREFIX})/bin/darktable.exe --version || true
$(cygpath ${INSTALL_PREFIX})/bin/darktable-cli.exe \
--width 2048 --height 2048 \
--hq true --apply-custom-presets false \
$(cygpath ${SRC_DIR})/src/tests/integration/images/mire1.cr2 \
$(cygpath ${SRC_DIR})/src/tests/integration/0000-nop/nop.xmp \
output.png \
--core --disable-opencl --conf host_memory_limit=8192 \
--conf worker_threads=4 -t 4 \
--conf plugins/lighttable/export/force_lcms2=FALSE \
--conf plugins/lighttable/export/iccintent=0
- name: Package
if: ${{ success() && matrix.btype == 'Release' && matrix.target == 'skiptest' }}
run: |
lensfun-update-data
cd "${BUILD_DIR}"
cmake --build "${BUILD_DIR}" --target package
- name: Package upload
if: ${{ success() && matrix.btype == 'Release' && matrix.target == 'skiptest' }}
uses: 'actions/upload-artifact@v2'
with:
name: darktable.${{ github.sha }}.win64.zip
path: ${{ env.BUILD_DIR }}/darktable-*.exe
retention-days: 2