Skip to content

Commit 606aeab

Browse files
authored
Merge pull request #12 from mattpopovich/cache-no-artifacts
Use Cache Only in CI
2 parents 42aadc7 + 2cf443d commit 606aeab

1 file changed

Lines changed: 9 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
printf -- "\n\n-Mounting the DMG file\n"
3737
hdiutil attach DNGConverter_17_5.dmg
3838
39-
# Rosetta2 is installed on arm64 Macs
39+
# Rosetta2 is needed for AdobeDNGConverter and is installed on arm64 Macs
4040
if [ -e /Library/Apple/usr/libexec/oah/libRosettaRuntime ]; then
4141
printf -- "\n\n-Running on Apple Silicon\n"
4242
else
@@ -49,18 +49,9 @@ jobs:
4949
printf -- "\n\n-Unmounting the DMG file\n"
5050
hdiutil detach /Volumes/DNGConverter_17_5
5151
52-
- name: Verify installation
53-
run: |
54-
du -sh /Applications/Adobe*
52+
printf -- "\n\n-Verifying the installation\n"
5553
/Applications/Adobe\ DNG\ Converter.app/Contents/MacOS/Adobe\ DNG\ Converter -d
5654
57-
- name: Upload installed environment
58-
uses: actions/upload-artifact@v4
59-
with:
60-
name: dng-env
61-
path: /Applications/Adobe\ DNG\ Converter.app
62-
retention-days: 30
63-
6455
test:
6556
needs: build
6657
runs-on: *runner-os
@@ -69,17 +60,14 @@ jobs:
6960
- name: Checkout repository
7061
uses: actions/checkout@v5
7162

72-
- name: Download installed environment
73-
uses: actions/download-artifact@v4
63+
- name: Restore Adobe DNG Converter.app from cache
64+
id: cache-dng-app
65+
uses: actions/cache@v3
7466
with:
75-
name: dng-env
76-
path: /tmp/dng-app
77-
78-
- name: Move environment to /Applications
79-
run: |
80-
sudo mkdir -p "/Applications/Adobe DNG Converter.app"
81-
sudo cp -R /tmp/dng-app/* "/Applications/Adobe DNG Converter.app/"
82-
sudo chmod +x "/Applications/Adobe DNG Converter.app/Contents/MacOS/Adobe DNG Converter"
67+
path: /Applications/Adobe\ DNG\ Converter.app
68+
key: dng-app-17-5
69+
restore-keys: |
70+
dng-app-
8371
8472
- name: Verify installation
8573
run: |

0 commit comments

Comments
 (0)