Skip to content

Create windows64_release.yml #31

Create windows64_release.yml

Create windows64_release.yml #31

Workflow file for this run

name: Macos Release
on:
push:
branches:
- 'main'
- 'continuous-integration'
- 'cross-platform'
tags:
- 'v*'
pull_request:
branches:
- 'main'
- 'continuous-integration'
defaults:
run:
shell: bash
env:
SOURCE_DIR: ${{ github.workspace }}
QT_VERSION: 5.15.2
ARTIFACT: smpt_macos.zip
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
dir: ${{ runner.temp }}
tools: 'tools_qtcreator,qt.tools.qtcreator'
- name: Create build directory
run: mkdir ${{ env.SOURCE_DIR }}/build
- name: Build
working-directory: ${{ env.SOURCE_DIR }}/build
run: |
qmake -r "CONFIG+=myRelease smpt_all macos" ${{ env.SOURCE_DIR }}/ScienceMode.pro
make
- name: Test
working-directory: ${{ env.SOURCE_DIR }}/build
run: ${{ env.SOURCE_DIR }}/build/ScienceMode_Library_Test/smptlus_test
- name: Zip build
working-directory: ${{ runner.temp }}
run: |
7z a smpt_macos.zip ${{ env.SOURCE_DIR }}/build/ScienceMode_Library/release/* -r
- name: Save build artifact
uses: actions/upload-artifact@master
with:
name: ${{ env.ARTIFACT }}
path: ${{ runner.temp }}/${{ env.ARTIFACT }}