File tree Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -Eeuo pipefail
4
+
5
+ JVER=3.0.3
6
+ if [ ! -d " libjpeg-turbo-$JVER " ]; then
7
+ url=" https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/$JVER /libjpeg-turbo-$JVER -gcc64.exe"
8
+ mkdir " libjpeg-turbo-$JVER "
9
+ pushd " libjpeg-turbo-$JVER "
10
+ curl -sL " $url " > archive.7z
11
+ 7z x archive.7z
12
+ popd
13
+ fi
14
+
15
+ gcc -O3 -o dcraw.exe dcraw.c -lws2_32 -DNO_JASPER -DNO_LCMS \
16
+ -I" libjpeg-turbo-$JVER /include" " libjpeg-turbo-$JVER /lib/libjpeg.dll.a"
17
+
18
+ cp " libjpeg-turbo-$JVER /bin/libjpeg-62.dll" .
19
+
20
+ 7z a -mx9 dcraw-windows.zip dcraw.exe libjpeg-62.dll
Original file line number Diff line number Diff line change 6
6
jobs :
7
7
8
8
build :
9
- runs-on : ubuntu -latest
9
+ runs-on : windows -latest
10
10
11
11
steps :
12
- - name : Placeholder
13
- run : true
12
+ - uses : actions/checkout@v4
13
+
14
+ - name : Build artifact
15
+ run : .github/workflows/build.sh
16
+ shell : bash
17
+
18
+ - name : Upload artifact
19
+ uses : actions/upload-artifact@v4
20
+ with :
21
+ path : dcraw-windows.zip
Original file line number Diff line number Diff line change
1
+ build * /
2
+ libjpeg-turbo * /
You can’t perform that action at this time.
0 commit comments