Skip to content

Commit

Permalink
Add workflow to auto build schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
subins2000 committed Sep 7, 2021
1 parent 780ebbb commit 3427e03
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
publish:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Dependencies
run: |
sudo apt install ruby-ffi
sudo apt install ruby-sqlite3
- name: Make Schemes
run: |
./build_libvarnam.sh
./build_all_schemes.sh
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: all-schemes
path: "*.vst"
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish

on:
push:
tags:
- '*'

jobs:
publish:
name: Publish
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Dependencies
run: |
sudo apt install ruby-ffi
sudo apt install ruby-sqlite3
- name: Make Schemes
run: |
./build_libvarnam.sh
./build_all_schemes.sh
- name: Upload Release Binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "*.vst"
file_glob: true
tag: ${{ github.ref }}
overwrite: true
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
*.vst
libvarnam*
*.vst
*.so
5 changes: 5 additions & 0 deletions build_all_schemes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

for f in *.scheme; do
./compile-scheme.rb -s $f
done
10 changes: 10 additions & 0 deletions build_libvarnam.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

git clone https://github.com/varnamproject/libvarnam.git libvarnam

cd libvarnam
mkdir -p build
cd build
cmake ..
cmake --build . --config Release
mv libvarnam.so* ../../

0 comments on commit 3427e03

Please sign in to comment.