Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielaCabiddu authored Oct 3, 2023
1 parent 01fdc8f commit a35220d
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: publish-release

on:
push:
tags:
- '*'

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

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Deps-Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt-get install -y libsqlite3-dev
- name: Deps-MacOs
if: matrix.os == 'macos-latest'
run: |
brew install sqlite3
- name: Build-Ubuntu
if: matrix.os == 'ubuntu-latest'
env:
CC: gcc-9
CXX: g++-9
run: |
./build.sh
- name: Build-MacOs
if: matrix.os == 'macos-latest'
env:
CC: clang
CXX: clang++
run: |
./build.sh
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}

0 comments on commit a35220d

Please sign in to comment.