2020-06-18 23:06:15 +08:00
|
|
|
name: macOS CI
|
2020-04-25 23:42:21 +08:00
|
|
|
|
2024-12-02 00:25:48 +08:00
|
|
|
on: [push, pull_request, workflow_dispatch]
|
2020-04-25 23:42:21 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
2024-02-16 13:29:43 +08:00
|
|
|
- uses: actions/checkout@v4
|
2020-04-25 23:42:21 +08:00
|
|
|
- name: Install Qt
|
2024-12-02 00:25:48 +08:00
|
|
|
uses: jurplel/install-qt-action@v4
|
2021-03-09 21:41:51 +08:00
|
|
|
with:
|
2024-12-02 00:25:48 +08:00
|
|
|
version: '6.8.1'
|
|
|
|
modules: 'qtimageformats'
|
2020-04-25 23:42:21 +08:00
|
|
|
- name: Run a qt project
|
|
|
|
run: |
|
2024-12-02 00:25:48 +08:00
|
|
|
cmake . -Bbuild
|
|
|
|
cmake --build build
|
|
|
|
- name: Deploy
|
|
|
|
run: |
|
|
|
|
macdeployqt ./build/ppic.app -dmg
|
|
|
|
ls
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: "macos-bundle"
|
|
|
|
path: build/*.dmg
|