inital packaging
Some checks failed
Mingw build testing / build-mingw (push) Failing after 30s
Ubuntu build testing / build-test (clang, ubuntu-20.04) (push) Failing after 2m10s
Ubuntu build testing / build-test (clang, ubuntu-22.04) (push) Failing after 2m35s
Ubuntu build testing / build-test (gcc, ubuntu-20.04) (push) Failing after 43s
Ubuntu build testing / build-test (gcc, ubuntu-22.04) (push) Failing after 44s
Some checks failed
Mingw build testing / build-mingw (push) Failing after 30s
Ubuntu build testing / build-test (clang, ubuntu-20.04) (push) Failing after 2m10s
Ubuntu build testing / build-test (clang, ubuntu-22.04) (push) Failing after 2m35s
Ubuntu build testing / build-test (gcc, ubuntu-20.04) (push) Failing after 43s
Ubuntu build testing / build-test (gcc, ubuntu-22.04) (push) Failing after 44s
This commit is contained in:
34
.github/workflows/build-source.yml
vendored
Normal file
34
.github/workflows/build-source.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Build source tars
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run build-source.sh
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
set -x
|
||||
sudo apt update
|
||||
sudo apt -y 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 hub libxkbcommon-dev libwayland-dev wget unzip
|
||||
sudo pip3 --no-input install 'meson>=0.60' mako
|
||||
./build-source.sh
|
||||
assets=()
|
||||
for asset in ./MangoHud-*-Source*.tar.*; do
|
||||
assets+=("-a" "$asset")
|
||||
done
|
||||
tag_name="${GITHUB_REF##*/}"
|
||||
hub release edit "${assets[@]}" -m "" "$tag_name"
|
||||
#hub release create "${assets[@]}" -m "$tag_name" "$tag_name"
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
continue-on-error: true
|
||||
with:
|
||||
name: MangoHud-${{steps.git-vars.outputs.artifact-metadata}}
|
||||
path: ${{runner.workspace}}/MangoHud/build/MangoHud-*tar.gz
|
||||
retention-days: 30
|
||||
Reference in New Issue
Block a user