Updating version number. #123
Workflow file for this run
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: Build MacOS (Intel) | |
on: | |
push: | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Cache Conan libs | |
id: cache-conan | |
uses: pat-s/[email protected] | |
with: | |
path: /Users/runner/.conan | |
key: conan-osx | |
- name: Install conan | |
run: | | |
python -m pip install --upgrade pip | |
pip install conan==1.* | |
# gitlab support | |
conan config set general.revisions_enabled=1 | |
conan remote add gitlab https://gitlab.com/api/v4/packages/conan --force | |
conan user gitlab+deploy-token-653038 -r gitlab -p sBwmejFz5Pn-gZPSNFMy | |
- name: Install libraries | |
run: | | |
mkdir ${{github.workspace}}/bin | |
cd ${{github.workspace}}/bin | |
conan install .. -o unit_test=True --build=qhull --build=missing | |
- name: Build | |
run: | | |
cd ${{github.workspace}}/bin | |
conan build .. | |
- name: Installer DND | |
run: | | |
cd ${{github.workspace}}/bin | |
cpack -G DragNDrop | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
path: | | |
${{github.workspace}}/bin/*.dmg | |
upload_all: | |
name: Upload if release | |
needs: [build] | |
runs-on: ubuntu-22.04 | |
if: github.event_name == 'release' && github.event.action == 'created' | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: artifact | |
path: dist | |
- name: Upload to releases | |
uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "dist/*.dmg" | |
tags: true | |
draft: true | |
verbose: true |