tar up the installed files #8
Workflow file for this run
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-binary | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- ready_for_review | |
- synchronize | |
release: | |
types: [created] | |
jobs: | |
build-image: | |
name: Build image | |
if: ${{ !github.event.pull_request.draft }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout the Repo | |
uses: actions/checkout@v2 | |
- name: install deps | |
run: | | |
sudo apt update | |
sudo apt -y install autoconf autopoint build-essential curl git libcairo2-dev libgtk2.0-dev make m4 pandoc pkg-config | |
- name: build package | |
run: | | |
./autogen.sh | |
./configure --disable-update-desktop-database | |
make | |
make install | |
tar zcvf ../gerbv.tar.gz /usr/local | |
- name: upload the artifacts | |
if: github.event_name == 'release' && github.event.action == 'created' | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ../gerbv.tar.gz | |