mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
workflows: fix workflow
This commit is contained in:
parent
961b706e13
commit
19ea82a72a
2 changed files with 5 additions and 4 deletions
3
.github/workflows/package.yml
vendored
3
.github/workflows/package.yml
vendored
|
|
@ -19,13 +19,14 @@ jobs:
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: lsfg-vk_TEST
|
name: lsfg-vk_TEST
|
||||||
|
path: .
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run-id: ${{ github.event.workflow_run.id }}
|
run-id: ${{ github.event.workflow_run.id }}
|
||||||
- name: Package lsfg-vk for various distros
|
- name: Package lsfg-vk for various distros
|
||||||
run: |
|
run: |
|
||||||
export VERSION=$(grep -oP ' VERSION\s+\K[\d.]+' CMakeLists.txt)
|
export VERSION=$(grep -oP ' VERSION\s+\K[\d.]+' CMakeLists.txt)
|
||||||
chmod +x scripts/package/package.sh
|
chmod +x scripts/package/package.sh
|
||||||
./scripts/package/package.sh
|
bash ./scripts/package/package.sh
|
||||||
- name: Upload lsfg-vk for dpkg
|
- name: Upload lsfg-vk for dpkg
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
if [ -z "$VERSION" ]; then
|
if [ -z "$VERSION" ]; then
|
||||||
echo "VERSION environment variable is not set."
|
echo "VERSION environment variable is not set."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -41,8 +41,8 @@ envsubst < scripts/package/rpm.spec > rpm/lsfg-vk.spec
|
||||||
|
|
||||||
mkdir -pv rpm/SOURCES
|
mkdir -pv rpm/SOURCES
|
||||||
cp -v bin/lsfg-vk-ui rpm/SOURCES
|
cp -v bin/lsfg-vk-ui rpm/SOURCES
|
||||||
cp lib/liblsfg-vk.so rpm/SOURCES
|
cp -v lib/liblsfg-vk.so rpm/SOURCES
|
||||||
cp share/vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json rpm/SOURCES
|
cp -v share/vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json rpm/SOURCES
|
||||||
|
|
||||||
rpmbuild -bb rpm/lsfg-vk.spec --define "_topdir $(pwd)/rpm"
|
rpmbuild -bb rpm/lsfg-vk.spec --define "_topdir $(pwd)/rpm"
|
||||||
mv -v "rpm/RPMS/x86_64/lsfg-vk-$VERSION-1.x86_64.rpm" "lsfg-vk-$VERSION.x86_64.rpm"
|
mv -v "rpm/RPMS/x86_64/lsfg-vk-$VERSION-1.x86_64.rpm" "lsfg-vk-$VERSION.x86_64.rpm"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue