Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 22 additions & 21 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
env:
WINDOWS_RELEASE_TAG: windows-x64-opensemba-tessellator-draft
LINUX_RELEASE_TAG: linux-opensemba-tessellator-draft
WINDOWS_FILENAME: "opensemba-tessellator-windows-x64.tar.gz"
LINUX_FILENAME: "opensemba-tessellator-linux.tar.gz"
WINDOWS_FILENAME: opensemba-tessellator-windows-x64.tar.gz
LINUX_FILENAME: opensemba-tessellator-linux.tar.gz

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -24,9 +24,9 @@ jobs:
{"os": ubuntu-latest, "name": "gnu", "filename": "linux"}
]
build-type: ["Release"]

fail-fast: false

name: ${{ matrix.preset.os }} / ${{matrix.preset.name}} / ${{matrix.build-type}}
runs-on: ${{ matrix.preset.os }}

Expand All @@ -50,9 +50,9 @@ jobs:
sudo apt-get update
sudo apt-get install -y libvtk9-dev

- name: Setup vcpkg
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11

- name: Windows configure and build
if: matrix.preset.name=='msbuild'
run: |
Expand All @@ -68,44 +68,42 @@ jobs:
run: |
cmake --preset ${{matrix.preset.name}} -S . -B build
cmake --build build -j

- name: Ubuntu Run tests
if: matrix.preset.name=='gnu'
run: build/bin/tessellator_tests

- name: Create linux .tar file
if: matrix.preset.name=='gnu'
run: |
cd build/bin
tar --exclude="*test*" -czvf ${{ env.LINUX_FILENAME }} *
cd build/bin && tar --exclude="*test*" -czvf ${{ env.LINUX_FILENAME }} *

- name: Create windows .tar file
if: matrix.preset.name=='msbuild'
run: |
cd build/bin/${{matrix.build-type}}
tar --exclude="*test*" --exclude="*.gz" -czvf ${{ env.WINDOWS_FILENAME }} *
cd build/bin/${{matrix.build-type}} && tar --exclude="*test*" --exclude="*.gz" -czvf "${{ env.WINDOWS_FILENAME }}" *

- name: Generating linux pre-release
if: matrix.preset.name=='gnu'
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ env.LINUX_RELEASE_TAG }}"
draft: True
pre-release: True
title: "${{matrix.preset.filename}} OpenSemba Tessellator draft release"
files: |
build/bin/${{ env.LINUX_FILENAME }}
./build/bin/${{ env.LINUX_FILENAME }}

- name: Generating windows pre-release
if: matrix.preset.name=='msbuild'
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ env.WINDOWS_RELEASE_TAG }}"
draft: True
pre-release: True
title: "${{matrix.preset.filename}} OpenSemba Tessellator draft release"
files: |
build/bin/${{matrix.build-type}}/${{ env.WINDOWS_FILENAME }}
./build/bin/${{matrix.build-type}}/${{ env.WINDOWS_FILENAME }}

make-release:
name: combine releases
Expand All @@ -118,14 +116,14 @@ jobs:
with:
repository: OpenSEMBA/tessellator
tag: ${{env.WINDOWS_RELEASE_TAG}}
fileName: ${{env.WINDOWS_FILENAME}}
fileName: ${{ env.WINDOWS_FILENAME }}

- name: download linux tar file
uses: robinraju/release-downloader@v1
with:
repository: OpenSEMBA/tessellator
tag: ${{env.LINUX_RELEASE_TAG}}
fileName: ${{env.LINUX_FILENAME}}
fileName: ${{ env.LINUX_FILENAME }}

- name: Get current date
id: date
Expand All @@ -135,16 +133,19 @@ jobs:
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ steps.date.outputs.date }}-opensemba-tessellator"
automatic_release_tag: "${{ steps.date.outputs.date }}-latest-opensemba-tessellator"
pre-release: false
title: "${{matrix.preset.filename}} OpenSemba Tessellator release"
title: "${{ matrix.preset.filename }} OpenSemba Tessellator release"
files: |
${{env.WINDOWS_FILENAME}}
${{env.LINUX_FILENAME}}
${{ env.WINDOWS_FILENAME }}
${{ env.LINUX_FILENAME }}

- name: Clean old pre-release
uses: "sgpublic/[email protected]"
with:
pre-release-drop: true
pre-release-keep-count: -1
pre-release-drop-tag: true
draft-drop: true
draft-keep-count: -1
draft-drop-tag: true
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ If you use this software, please give proper attribution by citing it as indicat
This code and its copyright is property of to the University of Granada (UGR), CIF: Q1818002F, www.ugr.es. UGR has licensed its distribution under terms of the GPL-3.0 and MIT licenses (see [LICENSE](LICENSE) file) with the name of `meshlib`

testData/cervezas_alhambra logo has been downloaded from https://cults3d.com/es/modelo-3d/arte/celosia-alhambra-logo-cervezas-alhambra where is available with license CC BY-NC-SA.

## Funding

- Spanish Ministry of Science and Innovation (MICIN/AEI) (Grant Number: PID2022-137495OB-C31)
- European Union, HECATE project. (HE-HORIZON-JU-Clean-Aviation-2022-01)
- iSense Project. In-Situ Monitoring of Electromagnetic Interference. (HE-HORIZON-MSCA-2023-DN-01)
Loading