Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielaCabiddu committed Sep 26, 2023
1 parent 235b700 commit 1456319
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish

on:
push:
tags:
- '*'

jobs:
publish:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: 01_Trimesh_Tiling
asset_name: 01_Trimesh_Tiling-linux-amd64
#- os: windows-latest
# artifact_name: mything.exe
# asset_name: mything-windows-amd64
- os: macos-latest
artifact_name: 01_Trimesh_Tiling
asset_name: 01_Trimesh_Tiling-macos-amd64

steps:
- uses: actions/checkout@v3
- name: Build
run:
cd examples
mkdir build
cd build
cmake .. -DCMAKE-BUILD_TYPE=Release
cmake --build . --parallel 8
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: examples/build/01_Trimesh_Tiling/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}

0 comments on commit 1456319

Please sign in to comment.