File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Decode (macOS)
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ build-macos :
11+ runs-on : macos-latest
12+
13+ steps :
14+ - name : Checkout source
15+ uses : actions/checkout@v4
16+
17+ - name : Install Qt 6 and build tools
18+ run : |
19+ brew update
20+ brew install cmake ninja qt6 create-dmg openssl-devel
21+
22+ - name : Configure with CMake
23+ run : |
24+ cmake -B build -G Ninja \
25+ -DCMAKE_BUILD_TYPE=Release \
26+ -DCMAKE_PREFIX_PATH="$(brew --prefix qt6)"
27+
28+ - name : Build project
29+ run : cmake --build build
30+
31+ - name : Make DMG
32+ run : |
33+ APP_NAME="Decode"
34+ VERSION="${{ github.ref_name || 'dev' }}-${{ github.run_number }}"
35+ APP_BUNDLE="build/${APP_NAME}.app"
36+ DMG_NAME="${APP_NAME}-${VERSION}.dmg"
37+ mkdir -p build/dmg_temp
38+ cp -R "${APP_BUNDLE}" build/dmg_temp/
39+ ln -s /Applications build/dmg_temp/Applications
40+ hdiutil create -volname "${APP_NAME} Installer" \
41+ -srcfolder build/dmg_temp \
42+ -ov -format UDZO build/${DMG_NAME}
43+ echo "DMG_NAME=${DMG_NAME}" >> $GITHUB_ENV
44+
45+ - name : Upload DMG
46+ uses : actions/upload-artifact@v4
47+ with :
48+ name : ${{ env.DMG_NAME }}
49+ path : build/${{ env.DMG_NAME }}
You can’t perform that action at this time.
0 commit comments