Skip to content

Attempting to fix the DNGConverter artifact install in the test stage #46

Attempting to fix the DNGConverter artifact install in the test stage

Attempting to fix the DNGConverter artifact install in the test stage #46

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 11, Col: 14): A sequence was not expected, (Line: 15, Col: 14): Unrecognized named-value: 'env'. Located at position 1 within expression: env.RUNNER_OS, (Line: 67, Col: 14): Unrecognized named-value: 'env'. Located at position 1 within expression: env.RUNNER_OS
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