Merge pull request #58 from SpotlightKid/patch-1 #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: remove tag | |
uses: dev-drprasad/[email protected] | |
with: | |
delete_release: false | |
tag_name: Latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v1 | |
- name: submodule update | |
run: git submodule update --init | |
- name: make | |
run: | | |
sudo apt-get update | |
sudo apt-get install libcairo2-dev libx11-dev libfluidsynth-dev libsmf-dev liblo-dev libsigc++-2.0-dev libjack-dev libasound2-dev libc6-dev | |
- name: build | |
run: make | |
- name: compress | |
run: | | |
cd /home/runner/work/Mamba/Mamba/src/build | |
zip -r /home/runner/work/Mamba/Mamba/src/build/Mamba.zip mamba | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: Latest | |
release_name: Release latest | |
draft: false | |
prerelease: true | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: /home/runner/work/Mamba/Mamba/src/build/Mamba.zip | |
asset_name: Mamba.zip | |
asset_content_type: application/zip |