Skip to content

Commit

Permalink
Add macOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-hannes committed Oct 26, 2024
1 parent 508613b commit 2658b31
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
name: C/C++ code style check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/[email protected]
with:
Expand All @@ -15,5 +15,5 @@ jobs:
name: Run ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ludeeus/action-shellcheck@master
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release builds

# Run only on tags
#on:
# push:
# tags:
# - '**'
on:
push:

jobs:
build-mac:
name: Release build for macOS
runs-on: macos-latest
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: 6.7.3

- name: Checkout sources
uses: actions/checkout@v4

- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"

- name: Configure CMake
run: >
cmake -DCMAKE_OSX_ARCHITECTURES:STRING="x86_64;arm64"
-S ${{ github.workspace }}
-B ${{ steps.strings.outputs.build-output-dir }}
- name: Build and package
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --target package

- name: Upload package
uses: actions/upload-artifact@v4
with:
name: macOS_installer
path: ${{ steps.strings.outputs.build-output-dir }}/Aqua-mixtura-*-Darwin.dmg
retention-days: 5

0 comments on commit 2658b31

Please sign in to comment.