Add all formulae to information for plugins #27
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-and-release | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-10.15, ubuntu-18.04, windows-2019] | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v2 | |
- name: Install git sdk | |
if: ${{ matrix.os == 'windows-2019' }} | |
uses: git-for-windows/setup-git-for-windows-sdk@v1 | |
with: | |
flavor: full | |
- name: download binary components | |
run: ./make-dependencies.sh | |
- name: Create Binary Windows | |
if: ${{ matrix.os == 'windows-2019' }} | |
run: make winapp | |
- name: Create Binary Linux | |
if: ${{ matrix.os == 'ubuntu-18.04' }} | |
run: make linuxapp | |
- name: Create Binary macOS | |
if: ${{ matrix.os == 'macos-10.15' }} | |
run: make macapp | |
- name: upload result | |
uses: actions/upload-artifact@v2 | |
with: | |
name: build-${{ matrix.os }} | |
path: dist/* | |
deploy: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- name: Download build artifacts | |
uses: actions/download-artifact@v2 | |
id: download | |
with: | |
path: ~/downloads | |
- name: Create binary dir | |
run: mkdir binary | |
- name: Collect all artifacts | |
run: find ${{steps.download.outputs.download-path}} -type f -exec mv {} binary \; | |
- name: Display structure of downloaded files | |
run: ls -R | |
- name: Release result | |
uses: marvinpinto/action-automatic-releases@v1.2.1 | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: true | |
title: "Development Build" | |
files: | | |
binary/* |