Commit bd502d57 authored by Jai Luthra's avatar Jai Luthra Committed by Jai Luthra

actions: Fix workflow for studio release

Signed-off-by: default avatarJai Luthra <me@jailuthra.in>
parent 52040d4d
...@@ -34,6 +34,8 @@ jobs: ...@@ -34,6 +34,8 @@ jobs:
if [ "$variant" == "dch" ]; then if [ "$variant" == "dch" ]; then
variant="DCH" variant="DCH"
elif [ "$variant" == "studio" ]; then
variant="Studio Driver"
fi fi
echo "OS=$os" >> $GITHUB_ENV echo "OS=$os" >> $GITHUB_ENV
...@@ -57,22 +59,34 @@ jobs: ...@@ -57,22 +59,34 @@ jobs:
- name: Delete Existing Files - name: Delete Existing Files
run: | run: |
echo "Deleting existing files if they exist" echo "Deleting existing files if they exist"
rm -f "${{ github.workspace }}/win/win10_x64/${{ env.VERSION }}/nvencodeapi64.1337" dir=${{ env.VERSION }}
rm -f "${{ github.workspace }}/win/win10_x64/${{ env.VERSION }}/nvencodeapi.1337"
if [ "${{ env.VARIANT }}" == "Studio Driver" ]; then
dir=nsd_${{ env.VERSION }}
fi
rm -f "${{ github.workspace }}/win/win10_x64/$dir/nvencodeapi64.1337"
rm -f "${{ github.workspace }}/win/win10_x64/$dir/nvencodeapi.1337"
echo "Existing files deleted successfully" echo "Existing files deleted successfully"
- name: Run autopatch.py - name: Run autopatch.py
run: | run: |
echo "Running autopatch.py with version ${{ env.VERSION }}" echo "Running autopatch.py with version ${{ env.VERSION }} and variant ${{ env.VARIANT }}"
cd "${{ github.workspace }}/win/tools/autopatch" cd "${{ github.workspace }}/win/tools/autopatch"
python autopatch.py ${{ env.VERSION }}
if [ "${{ env.VARIANT }}" == "DCH" ]; then
python autopatch.py ${{ env.VERSION }}
elif [ "${{ env.VARIANT }}" == "Studio Driver" ]; then
python autopatch.py https://international.download.nvidia.com/Windows/${{ env.VERSION }}/${{ env.VERSION }}-desktop-win10-win11-64bit-international-nsd-dch-whql.exe
fi
echo "autopatch.py executed successfully" echo "autopatch.py executed successfully"
- name: Run add_driver.py - name: Run add_driver.py
run: | run: |
echo "Running add_driver.py with variant ${{ env.VARIANT }} and version ${{ env.VERSION }}" echo "Running add_driver.py with variant ${{ env.VARIANT }} and version ${{ env.VERSION }}"
cd "${{ github.workspace }}/tools/readme-autogen" cd "${{ github.workspace }}/tools/readme-autogen"
python add_driver.py -W -P GeForce --variant ${{ env.VARIANT }} -w win10 ${{ env.VERSION }} python add_driver.py -W -P GeForce --variant "${{ env.VARIANT }}" -w win10 ${{ env.VERSION }}
echo "add_driver.py executed successfully" echo "add_driver.py executed successfully"
- name: Run readme_autogen.py - name: Run readme_autogen.py
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment