-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (76 loc) · 2.73 KB
/
Copy pathci.yml
File metadata and controls
94 lines (76 loc) · 2.73 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
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
name: CI
on:
push: # This triggers on any commit
branches:
- '**' # Runs on all branches
pull_request:
env:
# These images are arm64 unless specified: https://github.com/actions/runner-images
RUNNER_OS: [macos-15] # macOS CI is expensive: [macos-14, macos-15, macos-15-intel, macos-26]
jobs:
build:
runs-on: ${{ env.RUNNER_OS }}
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Cache Adobe DNG Converter DMG
id: cache-dmg
uses: actions/cache@v3
with:
path: DNGConverter_17_5.dmg
key: dngconverter-17-5
restore-keys: |
dngconverter-
- name: Download Adobe DNG Converter
if: steps.cache-dmg.outputs.cache-hit != 'true'
run: |
printf -- "-Downloading the DNG Converter .dmg file\n"
curl -L -o DNGConverter_17_5.dmg https://download.adobe.com/pub/adobe/dng/mac/DNGConverter_17_5.dmg
- name: Install Adobe DNG Converter
run: |
printf -- "\n\n-Mounting the DMG file\n"
hdiutil attach DNGConverter_17_5.dmg
# Rosetta2 is installed on arm64 Macs
if [ -e /Library/Apple/usr/libexec/oah/libRosettaRuntime ]; then
printf -- "\n\n-Running on Apple Silicon\n"
else
printf -- "\n\n-Running on Intel\n"
fi
printf -- "\n\n-Installing Adobe DNG Converter\n"
sudo installer -pkg /Volumes/DNGConverter_17_5/DNGConverter_17_5.pkg -target `pwd`
printf -- "\n\n-Unmounting the DMG file\n"
hdiutil detach /Volumes/DNGConverter_17_5
- name: Verify installation
run: |
/Applications/Adobe\ DNG\ Converter.app/Contents/MacOS/Adobe\ DNG\ Converter -d
- name: Upload installed environment
uses: actions/upload-artifact@v4
with:
name: dng-env
path: /Applications/Adobe\ DNG\ Converter.app
retention-days: 30
test:
needs: build
runs-on: ${{ env.RUNNER_OS }}
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Download installed environment
uses: actions/download-artifact@v4
with:
name: dng-env
path: /Applications/Adobe\ DNG\ Converter.app
- name: Verify installation
run: |
ls -l
ls -l /Applications
sudo cp -R "Adobe DNG Converter.app" /Applications/
/Applications/Adobe\ DNG\ Converter.app/Contents/MacOS/Adobe\ DNG\ Converter -d
- name: Test organizeGoProDNG.sh
run: |
chmod +x tests/test_organizeGoProDNG.sh
bash tests/test_organizeGoProDNG.sh
- name: Test compare_AdobeDNGConverter_arguments.sh
run: |
chmod +x tests/test_compare_AdobeDNGConverter_arguments.sh
bash tests/test_compare_AdobeDNGConverter_arguments.sh