From 0df9edeed2756a8faf23f85e7cf774d3d6d65ea5 Mon Sep 17 00:00:00 2001 From: koplo199 <85577251+koplo199@users.noreply.github.com> Date: Sun, 18 Dec 2022 14:26:54 +0100 Subject: [PATCH 1/4] Remove broken dxvk experimental build --- input_files/14-dxvk.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/input_files/14-dxvk.yml b/input_files/14-dxvk.yml index c3241112..36851a23 100644 --- a/input_files/14-dxvk.yml +++ b/input_files/14-dxvk.yml @@ -1,7 +1,3 @@ -dxvk-2.0-1-18b0ef6: - Category: dxvk - Channel: unstable - Date: '1671209496' dxvk-2.0: Category: dxvk Channel: stable From 40c6c7b1e8938b77d789413db2cbdbd9d0b30b67 Mon Sep 17 00:00:00 2001 From: koplo199 <85577251+koplo199@users.noreply.github.com> Date: Sun, 18 Dec 2022 21:22:50 +0100 Subject: [PATCH 2/4] Fix folder structure for dxvk-nvapi + all experimental builds --- .github/workflows/pull-components.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull-components.yml b/.github/workflows/pull-components.yml index 9a147285..c22d5d9e 100644 --- a/.github/workflows/pull-components.yml +++ b/.github/workflows/pull-components.yml @@ -128,6 +128,12 @@ jobs: tar --use-compress-program=unzstd -xvf $release_archive_name tar -zcvf "${{ env.NAME }}.tar.gz" "${{ env.NAME }}" echo "UPLOAD_FILE=$(pwd)/${{ env.NAME }}.tar.gz" >> $GITHUB_ENV + elif [[ $release_archive_name == "dxvk-nvapi"* ]]; then + curl -fsSLO "$release_archive_url" + mkdir "${{ env.NAME }}" + tar -xvf $release_archive_name --directory "${{ env.NAME }}" + tar -zcvf "${{ env.NAME }}.tar.gz" "${{ env.NAME }}" + echo "UPLOAD_FILE=$(pwd)/${{ env.NAME }}.tar.gz" >> $GITHUB_ENV fi - name: Check for new artifact @@ -168,7 +174,9 @@ jobs: if [[ "${{ env.NAMEPREFIX }}" == "dxvk"* ]]; then rm -rf "$folder/usr" fi - tar -C "$folder" -zcvf "${{ env.NAME }}.tar.gz" . + mkdir "${{ env.NAME }}" + mv "$folder"/* "${{ env.NAME }}" + tar -zcvf "${{ env.NAME }}.tar.gz" "${{ env.NAME }}" echo "UPLOAD_FILE=$(pwd)/${{ env.NAME }}.tar.gz" >> $GITHUB_ENV - name: Upload component archive From 8097863c7d1a3a3d48ca01881163d1e405335f6b Mon Sep 17 00:00:00 2001 From: koplo199 <85577251+koplo199@users.noreply.github.com> Date: Sun, 18 Dec 2022 21:59:46 +0100 Subject: [PATCH 3/4] Remove soon to be broken dxvk-nvapi --- input_files/16-dxvk-nvapi.yml | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 input_files/16-dxvk-nvapi.yml diff --git a/input_files/16-dxvk-nvapi.yml b/input_files/16-dxvk-nvapi.yml deleted file mode 100644 index afe86874..00000000 --- a/input_files/16-dxvk-nvapi.yml +++ /dev/null @@ -1,20 +0,0 @@ -dxvk-nvapi-v0.6: - Category: nvapi - Channel: stable - Date: '1669741761' -dxvk-nvapi-v0.5.4: - Category: nvapi - Channel: stable - Date: '1649403018' -dxvk-nvapi-v0.5.3: - Category: nvapi - Channel: stable -dxvk-nvapi-v0.5.2: - Category: nvapi - Channel: stable -dxvk-nvapi-v0.5.1: - Category: nvapi - Channel: stable -dxvk-nvapi-v0.4: - Category: nvapi - Channel: stable From 5d2bbfe7ff266b3de6f9f9445d50f2f637d3b367 Mon Sep 17 00:00:00 2001 From: koplo199 <85577251+koplo199@users.noreply.github.com> Date: Sun, 18 Dec 2022 22:13:20 +0100 Subject: [PATCH 4/4] Handle empty file case correctly --- input_files/update_yml_entries.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/input_files/update_yml_entries.sh b/input_files/update_yml_entries.sh index 17186eba..95031273 100755 --- a/input_files/update_yml_entries.sh +++ b/input_files/update_yml_entries.sh @@ -16,7 +16,8 @@ GITHUB_ENV=${GITHUB_ENV-/dev/null} command_wo_sub="{\"$component_name\": {\"Category\":\"$category\", \"Channel\": \"$channel\", \"Date\": \"$created_at\"}}" command_w_sub="{\"$component_name\": {\"Category\":\"$category\", \"Sub-category\":\"$subcategory\", \"Channel\": \"$channel\", \"Date\": \"$created_at\"}}" -if ! [ -f "$filename" ]; then +empty_file=$(yq "." $filename) +if ! [ -f "$filename" ] || [ -z "$empty_file" ]; then touch $filename if [ -z "$subcategory" ]; then yq -n -i -y "$command_wo_sub" $filename