Skip to content

.

. #2

Workflow file for this run

name: mac-os
on: push
jobs:
mac-os:
runs-on: macos-15
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '5.15.2'
arch: 'clang_64'
- name: Qmake build
run: |
export PATH=$QT_ROOT_DIR/bin/:$PATH
mkdir build && cd build
qmake CONFIG+=sdk_no_version_check -o Makefile ../Datacorn.pro
make release -j$(nproc)
- name: Setup directory with artifacts
shell: msys2 {0}
run: |
export PATH=$QT_ROOT_DIR/bin/:$PATH
export RDIR=Datacorn
mkdir $RDIR
macdeployqt build/binary/Datacorn.app
cp -r build/binary/Datacorn.app Datacorn
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Datacorn-macos
path: Datacorn/
- name: Release
if: ${{ github.ref == 'refs/heads/master' }}
uses: svenstaro/upload-release-action@v2
with:
overwrite: true
asset_name: Datacorn-mingw.exe
prerelease: true
tag: |
latest
file: |
Datacorn/Datacorn.exe
- name: Log Failure
uses: sarisia/actions-status-discord@v1
if: failure()
with:
nodetail: true
description: |
[[${{ github.event.repository.name }}] ${{ github.job }} failed on ${{ github.ref }}](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})
title: |
color: 0xff0000
webhook: ${{ secrets.DISCORD_WEBHOOK }}
avatar_url: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
username: Github
Notify-success:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
needs: [ mac-os ]
steps:
- name: Log Success
uses: sarisia/actions-status-discord@v1
with:
nodetail: true
description: |
[[${{ github.event.repository.name }}] Build Datacorn mingw success on ${{ github.ref }}](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})
title: |
color: 0x0f9826
webhook: ${{ secrets.DISCORD_WEBHOOK }}
avatar_url: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
username: Github