2020-09-28 21:32:42 +00:00
|
|
|
name: Build source tars
|
|
|
|
on:
|
2021-06-11 19:49:51 +00:00
|
|
|
release:
|
|
|
|
types: ["created"]
|
2020-09-28 21:32:42 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Run build-source.sh
|
|
|
|
run: |
|
|
|
|
set -x
|
2021-06-11 19:26:16 +00:00
|
|
|
sudo apt update
|
|
|
|
sudo apt install gcc g++ ninja-build python3-pip python3-setuptools python3-wheel pkg-config mesa-common-dev libx11-dev libxnvctrl-dev libdbus-1-dev glslang-tools
|
|
|
|
sudo pip3 install 'meson>=0.54' mako
|
2020-09-28 21:32:42 +00:00
|
|
|
./build-source.sh
|
|
|
|
assets=()
|
2021-06-11 18:48:02 +00:00
|
|
|
for asset in ./MangoHud-*-Source*.tar.*; do
|
2020-09-28 21:32:42 +00:00
|
|
|
assets+=("-a" "$asset")
|
|
|
|
done
|
|
|
|
tag_name="${GITHUB_REF##*/}"
|
2021-06-11 19:49:51 +00:00
|
|
|
hub release edit "${assets[@]}" -m "" "$tag_name"
|
|
|
|
#hub release create "${assets[@]}" -m "$tag_name" "$tag_name"
|
2020-09-28 21:32:42 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|