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
|
||||
with:
|
||||
name: lsfg-vk_TEST
|
||||
path: .
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
run-id: ${{ github.event.workflow_run.id }}
|
||||
- name: Package lsfg-vk for various distros
|
||||
run: |
|
||||
export VERSION=$(grep -oP ' VERSION\s+\K[\d.]+' CMakeLists.txt)
|
||||
chmod +x scripts/package/package.sh
|
||||
./scripts/package/package.sh
|
||||
bash ./scripts/package/package.sh
|
||||
- name: Upload lsfg-vk for dpkg
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "VERSION environment variable is not set."
|
||||
exit 1
|
||||
|
|
@ -41,8 +41,8 @@ envsubst < scripts/package/rpm.spec > rpm/lsfg-vk.spec
|
|||
|
||||
mkdir -pv rpm/SOURCES
|
||||
cp -v bin/lsfg-vk-ui rpm/SOURCES
|
||||
cp lib/liblsfg-vk.so rpm/SOURCES
|
||||
cp share/vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json rpm/SOURCES
|
||||
cp -v lib/liblsfg-vk.so 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"
|
||||
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