Skip to content

Commit

Permalink
ci: add workflow to build tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mttbernardini committed May 7, 2024
1 parent 5d9be60 commit 0e54077
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 111 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ tab_width = 4

[*.{cpp,h,md}]
indent_style = space

[*.{yml,yaml}]
indent_style = space
indent_size = 2
61 changes: 61 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]

env:
BUILD_TYPE: RelWithDebInfo

steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive

- name: Configure CMake
shell: bash
run: cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -B build

- name: Build
shell: bash
run: cmake --build build --config $BUILD_TYPE

- name: Upload
uses: actions/upload-artifact@v4
with:
path: dist/*
name: built-plugins-${{ matrix.os }}

attach:
runs-on: ubuntu-latest
needs: [build]
if: startsWith(github.ref, 'refs/tags/')

steps:
- name: Download binaries
uses: actions/download-artifact@v4
with:
pattern: built-plugins-*
merge-multiple: true

- name: Extract release notes
run: git cat-file tag ${{ github.ref }} | tail -n +3 > changelog.md

- name: Attach binaries to release
uses: softprops/action-gh-release@v2
with:
body_path: changelog.md
files: |
*.vst3
*.component
111 changes: 0 additions & 111 deletions .github/workflows/workflow.yml

This file was deleted.

0 comments on commit 0e54077

Please sign in to comment.