Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
jailuthra committed Nov 23, 2023
1 parent a4ca2e8 commit 2d97c3f
Showing 1 changed file with 54 additions and 17 deletions.
71 changes: 54 additions & 17 deletions .github/workflows/gen_linux_patches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,38 +79,75 @@ jobs:
echo "find_bytecode.sh executed successfully"
- name: Update Patch
- name: Update NVENC
run: |
echo "Running update_patch.sh for version ${{ env.VERSION }}"
cd "${{ github.workspace }}/tools/autopatch"
./update_patch.sh -f ../../patch.sh -b $(./find_bytecode.sh ${{ env.VERSION }} ${{ env.DRIVER_URL }}) -o ${{ env.VERSION }}
old_version="${{ inputs.old_version }}"
case "${{ inputs.mode }}" in
search)
if [[ -z $old_version ]]; then
./update_patch.sh -f ../../patch.sh -b $(./find_bytecode.sh ${{ env.VERSION }} ${{ env.DRIVER_URL }})
else
./update_patch.sh -f ../../patch.sh -b $(./find_bytecode.sh ${{ env.VERSION }} ${{ env.DRIVER_URL }}) -o $old_version
fi
;;
copy)
if [[ -z $old_version ]]; then
./update_patch.sh -f ../../patch.sh -v ${{ env.VERSION }}
else
./update_patch.sh -f ../../patch.sh -v ${{ env.VERSION }} -o $old_version
fi
;;
*)
echo "ERROR: Wrong mode"
;;
esac
echo "update_patch.sh executed successfully"
#- name: Run add_driver.py
#run: |
#echo "Running add_driver.py with variant ${{ env.VARIANT }} and version ${{ env.VERSION }}"
#cd "${{ github.workspace }}/tools/readme-autogen"
#python add_driver.py -W -P GeForce --variant "${{ env.VARIANT }}" -w win10 ${{ env.VERSION }}
#echo "add_driver.py executed successfully"
- name: Update NVFBC
run: |
#- name: Run readme_autogen.py
#run: |
#echo "Running readme_autogen.py"
#cd "${{ github.workspace }}/tools/readme-autogen"
#python readme_autogen.py
#echo "readme_autogen.py executed successfully"
echo "Running update_patch.sh for FBC for version ${{ env.VERSION }}"
cd "${{ github.workspace }}/tools/autopatch"
old_version="${{ inputs.old_version }}"
if [[ -z $old_version ]]; then
./update_patch.sh -f ../../patch-fbc.sh -v ${{ env.VERSION }}
else
./update_patch.sh -f ../../patch-fbc.sh -v ${{ env.VERSION }} -o $old_version
fi
echo "update_patch.sh for FBC executed successfully"
- name: Run add_driver.py
run: |
echo "Running add_driver.py with version ${{ env.VERSION }}"
cd "${{ github.workspace }}/tools/readme-autogen"
python add_driver.py -L -U ${{ env.DRIVER_URL }} ${{ env.VERSION }}
echo "add_driver.py executed successfully"
- name: Run readme_autogen.py
run: |
echo "Running readme_autogen.py"
cd "${{ github.workspace }}/tools/readme-autogen"
python readme_autogen.py
echo "readme_autogen.py executed successfully"
- name: Commit and push changes
run: |
echo "Committing and pushing changes"
branch=autopatch_${{ env.VERSION }}
cd "${{ github.workspace }}"
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git checkout -b ${{ env.VERSION }}
git checkout -b $branch
git add -A
git diff --quiet --exit-code --cached || git commit -m "linux: add support for driver ${{ env.VERSION }}" -m "${{ inputs.description }}"
git push origin ${{env.VERSION }}
git push origin $branch
echo "Committed and pushed changes"

0 comments on commit 2d97c3f

Please sign in to comment.