nightly #128
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: C/C++ CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
# Path to the solution file relative to the root of the project. | |
SOLUTION_FILE_PATH: . | |
# Configuration type to build. | |
# You can convert this to a build matrix if you need coverage of multiple configuration types. | |
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | |
BUILD_CONFIGURATION: Release | |
jobs: | |
build: | |
runs-on: macos-latest | |
if: "contains(github.event.head_commit.message, 'mbmp')" | |
steps: | |
- name: Bump version and push tag | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v2 | |
- uses: papeloto/action-zip@v1 | |
- name: Add MSBuild to PATH | |
uses: microsoft/setup-msbuild@v1 | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v2 | |
with: | |
version: '6.0.1' | |
tools: 'tools_ifw,4.0.0,qt.tools.ifw.40 tools_qtcreator,9.0.0,qt.tools.qtcreator' | |
- name: Write version file | |
run: "echo ${{ steps.tag_version.outputs.new_tag }}>version.txt" | |
shell: cmd | |
- name: Compile | |
run : "Publish/publish_mac/publish_ci.sh" | |
# - name: Nutil_validator | |
# run : "Publish\\windows_ci\\validator.cmd" | |
# - name: Zipping | |
# uses: papeloto/action-zip@v1 | |
# with: | |
# files: nutil | |
# dest: nutil_win.zip | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.tag_version.outputs.new_tag }} | |
release_name: Release ${{ steps.tag_version.outputs.new_tag }} | |
body: | | |
Macos version of Nutil. | |
draft: false | |
prerelease: true | |
- name: Rename file | |
run: "mv nutil_macos.dmg nutil_macos_${{ steps.tag_version.outputs.new_tag }}.dmg" | |
- name: Upload Release Asset (x64) macos | |
id: upload-release-asset-x64 | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./nutil_macos_${{ steps.tag_version.outputs.new_tag }}.dmg | |
asset_name: nutil_macos_${{ steps.tag_version.outputs.new_tag }}.dmg | |
asset_content_type: application/dmg | |