pkg-config debugging #7
Workflow file for this run
This file contains 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: Build | |
on: | |
push: | |
branches: | |
- macOSbuildTest | |
jobs: | |
PC_Application_OSX: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
brew install qt@6 libusb pcre | |
- name: Test pkg-config | |
run: | | |
pkg-config --cflags libusb-1.0 | |
- name: Set Environment | |
run: | | |
echo "/usr/local/opt/qt@6/bin" >> $GITHUB_PATH | |
- name: Get build timestamp | |
id: id_date | |
run: echo "timestamp=$(date +%Y-%m-%d-%H-%M-%S)" >> $GITHUB_OUTPUT | |
- name: Get app version | |
id: id_version | |
run: | | |
cd Software/LibreCAL-GUI | |
fw_major=`pcregrep -o '(?<=FW_MAJOR=)[0-9]+' LibreCAL-GUI.pro` | |
fw_minor=`pcregrep -o '(?<=FW_MINOR=)[0-9]+' LibreCAL-GUI.pro` | |
fw_patch=`pcregrep -o '(?<=FW_PATCH=)[0-9]+' LibreCAL-GUI.pro` | |
echo "app_version=v$fw_major.$fw_minor.$fw_patch-${{steps.id_date.outputs.timestamp}}" >> $GITHUB_OUTPUT | |
- name: Build application | |
run: | | |
cd Software/LibreCAL-GUI | |
qmake LibreCAL-GUI.pro | |
make -j9 | |
macdeployqt LibreCAL-GUI.app | |
zip -ry LibreCAL-GUI.zip LibreCAL-GUI.app | |
shell: bash | |
- name: Upload artifact | |
env: | |
LIBRECAL_VERSION: "${{steps.id_version.outputs.app_version}}" | |
uses: actions/upload-artifact@v3 | |
with: | |
name: LibreCAL-GUI-OSX-${{env.LIBRECAL_VERSION}} | |
path: Software/LibreCAL-GUI/LibreCAL-GUI.zip |