Another attempt at one reference for the runner OS #49
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | ||
| on: | ||
| push: # This triggers on any commit | ||
| branches: | ||
| - '**' # Runs on all branches | ||
| pull_request: | ||
| # YAML anchor for the runner OS | ||
| # These images are arm64 unless specified: https://github.com/actions/runner-images | ||
| x-runner: &runner-os [macos-15] # macOS CI is expensive: [macos-14, macos-15, macos-15-intel, macos-26] | ||
| jobs: | ||
| build: | ||
| runs-on: *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: *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 | ||