1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
name: Tag Release
on:
push:
tags:
- 'v*'
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure
- name: make
run: QSTAT_VERSION=${{ github.event.release.tag_name }} make
- uses: actions/upload-artifact@v2
with:
name: linux_amd64
path: qstat
build_macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install automake
run: brew install automake
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure
- name: make
run: QSTAT_VERSION=${{ github.event.release.tag_name }} make
- uses: actions/upload-artifact@v2
with:
name: darwin_amd64
path: qstat
build_windows:
runs-on: windows-latest
env:
QSTAT_VERSION: ${{ github.event.release.tag_name }}
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1
- name: nmake
run: |
nmake -f Makefile.noauto windows windows_debug
- uses: actions/upload-artifact@v2
with:
name: windows_amd64
path: qstat.exe
# TODO(austin) build for mac-os which would cover freebsd
# https://github.com/vmactions/freebsd-vm
release:
runs-on: ubuntu-latest
needs:
- build_windows
- build_linux
- build_macos
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
path: bin
- name: zip
run: zip -r release.zip bin/* qstat.cfg contrib.cfg LICENSE.*
- name: Release
uses: "softprops/action-gh-release@v1"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
prerelease: false
tag_name: "${{ github.event.release.tag_name }}"
files: |
release.zip
|