Fix release action

This commit is contained in:
ThatOneCalculator 2022-06-22 13:09:37 -07:00
parent ff6e3a4d24
commit 606f4b0794

View file

@ -7,7 +7,7 @@ on:
jobs: jobs:
meson-rl: meson-rl:
name: "Build and release Hyprland with Meson (Arch)" name: "Release Hyprland with Meson (Arch)"
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: archlinux image: archlinux
@ -27,10 +27,6 @@ jobs:
-Ddefault_library=static -Ddefault_library=static
- name: Compile - name: Compile
run: ninja -C obj-x86_64-pc-linux-gnu run: ninja -C obj-x86_64-pc-linux-gnu
- name: Build wlroots
run: |
sed -i '$ d' ./Makefile
make config
- name: Compress and package artifacts - name: Compress and package artifacts
run: | run: |
mkdir x86_64-pc-linux-gnu mkdir x86_64-pc-linux-gnu
@ -39,11 +35,10 @@ jobs:
mkdir release-files/assets mkdir release-files/assets
DESTDIR=$PWD/x86_64-pc-linux-gnu meson install -C obj-x86_64-pc-linux-gnu --tags runtime DESTDIR=$PWD/x86_64-pc-linux-gnu meson install -C obj-x86_64-pc-linux-gnu --tags runtime
cp ./LICENSE release-files/ cp ./LICENSE release-files/
cp subprojects/wlroots/build/libwlroots.so.11032 release-files/
cp x86_64-pc-linux-gnu/usr/local/bin/* release-files/ cp x86_64-pc-linux-gnu/usr/local/bin/* release-files/
cp -r example/ release-files/ cp -r example/ release-files/
cp -r assets/ release-files/ cp -r assets/ release-files/
tar -cvf Hyprland.tar.xz -C release-files tar -cvf Hyprland.tar.xz release-files
- name: Release - name: Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')