Skip to content

Commit

Permalink
fix(CICD): MacOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Puchkov committed May 14, 2024
1 parent f7b2dea commit 4c847f5
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/MacOS-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
DIR_PKG: build/src
HELPERS_SCRIPTS_PATH: ../../packaging/macos
# Apple developer identity, example: "Developer ID Application: <user name> (code)"
# Note: no signing and notarization will proceed if this variable is not set
# Note: no signing and notarization will be proceed if this variable is not set
APPLE_DEV_IDENTITY: ${{ secrets.APPLE_DEV_IDENTITY }}
# Apple ID user
APPLE_DEV_USER: ${{ secrets.APPLE_DEV_USER }}
Expand All @@ -45,22 +45,19 @@ jobs:

steps:
- name: Checkout Source code
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Install Qt
run: brew install qt@5 cmake

- name: Configure
run: |
mkdir -p "${DIR_BULD}"
cd "${DIR_BULD}"
rm -rf ./src/flameshot.dmg ./src/flameshot.app/
cmake .. -DQt5_DIR=$(brew --prefix qt5)/lib/cmake/Qt5 -DUSE_MONOCHROME_ICON=True
rm -rf "${DIR_BULD}"/src/flameshot.dmg "${DIR_BULD}"/src/flameshot.app/
cmake -S . -B "${DIR_BULD}" -DQt5_DIR=$(brew --prefix qt5)/lib/cmake/Qt5 -DUSE_MONOCHROME_ICON=True
- name: Compile
run: |
cd "${DIR_BULD}"
make
cmake --build "${DIR_BULD}"
- name: Create key-chain and import certificate
run: |
Expand All @@ -81,7 +78,7 @@ jobs:
echo "=====no operation for you can see link in the log console====="
- name: Artifact Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: MacOS-artifact
path: ${{ github.workspace }}/build/src/flameshot.dmg
Expand All @@ -94,4 +91,4 @@ jobs:
else
echo "::warning Notarization check failed"
# exit 1
fi
fi

0 comments on commit 4c847f5

Please sign in to comment.