Skip to content

Commit

Permalink
build: upload artifact when while not merged and fix dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetf committed Jun 15, 2022
1 parent c01257d commit a195e9f
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
# Enable when testing release infrastructure on a branch.
branches:
- build
- release-*
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
Expand All @@ -17,15 +17,41 @@ jobs:
python-version: '3.x'
- name: Install meson
run: pip install meson ninja
- name: Install dependencies
run: |
sudo apt-get install -y libudev-dev libxkbcommon-dev libdrm-dev libgbm-dev libegl1-mesa-dev libgles-dev libpango1.0-dev libsystemd-dev
- name: Install libtsm
run: |
pip install cmake
curl -L -o libtsm.tar.gz $(curl -s https://api.github.com/repos/Aetf/libtsm/releases/latest \
| grep "tarball_url" \
| awk '{ print $2 }' \
| sed 's/,$//' \
| sed 's/"//g' )
mkdir libtsm
tar -xf libtsm.tar.gz -C libtsm --strip 1
cd libtsm
cmake -Bbuilddir
cmake --build builddir
sudo cmake --install builddir
- name: Meson setup
run: meson setup builddir/
- name: Create source distribution
# no unit tests yet
run: meson dist -C builddir/ --no-tests
- name: Create release note
run: tools/extract_release_note.py NEWS ${{ github.workspace }}-release-note.txt
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: release-files
path: |
builddir/meson-dist/*
${{ github.workspace }}-release-note.txt
- name: Release
uses: softprops/action-gh-release@v1
# only actually create the release when run on tag
if: startsWith(github.ref, 'refs/tags/')
with:
files: builddir/meson-dist/*
body_path: ${{ github.workspace }}-release-note.txt
Expand Down

0 comments on commit a195e9f

Please sign in to comment.