forked from libsdl-org/SDL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into SDL3_Saitek_Rudder_Patch
- Loading branch information
Showing
637 changed files
with
40,376 additions
and
36,611 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: 'Setup libusb for MSBC' | ||
description: 'Greet someone' | ||
inputs: | ||
version: | ||
description: 'libusb version' | ||
required: true | ||
default: '1.0.27' | ||
arch: | ||
description: "libusb architecture (x86 or x64)" | ||
rqeuired: true | ||
outputs: | ||
root: | ||
description: "libusb root directory" | ||
value: ${{ steps.final.outputs.root }} | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: 'Restore cached libusb-${{ inputs.version }}.7z' | ||
id: cache-restore | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: 'C:\temp\libusb-${{ inputs.version }}.7z' | ||
key: libusb-msvc-${{ inputs.version }} | ||
- name: 'Download libusb ${{ inputs.version }}' | ||
if: ${{ !steps.cache-restore.outputs.cache-hit }} | ||
shell: pwsh | ||
run: | | ||
Invoke-WebRequest "https://github.com/libusb/libusb/releases/download/v${{ inputs.version }}/libusb-${{ inputs.version }}.7z" -OutFile "C:\temp\libusb-${{ inputs.version }}.7z" | ||
- name: 'Cache libusb-${{ inputs.version }}.7z' | ||
if: ${{ !steps.cache-restore.outputs.cache-hit }} | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: 'C:\temp\libusb-${{ inputs.version }}.7z' | ||
key: libusb-msvc-${{ inputs.version }} | ||
- name: 'Extract libusb' | ||
shell: pwsh | ||
run: | | ||
7z "-oC:\temp\libusb-${{ inputs.version }}" x "C:\temp\libusb-${{ inputs.version }}.7z" | ||
- name: 'Set output vars' | ||
id: final | ||
shell: pwsh | ||
run: | | ||
if ('${{ inputs.arch }}' -eq 'x86') { | ||
$archdir = "MS32"; | ||
} elseif ('${{ inputs.arch }}' -eq 'x64') { | ||
$archdir = "MS64"; | ||
} else { | ||
write-host "Invalid arch=${{ inputs.arch }}" | ||
exit 1 | ||
} | ||
$libusb_incdir = "C:\temp\libusb-${{ inputs.version }}\include"; | ||
$libusb_libdir = "C:\temp\libusb-${{ inputs.version }}\VS2022\${archdir}\dll"; | ||
$libusb_header = "${libusb_incdir}\libusb.h"; | ||
$libusb_implib = "${libusb_libdir}\libusb-1.0.lib"; | ||
$libusb_dll = "${libusb_libdir}\libusb-1.0.dll"; | ||
if (!(Test-Path "${libusb_header}")) { | ||
write-host "${libusb_header} does not exist!" | ||
exit 1 | ||
} | ||
if (!(Test-Path "${libusb_implib}")){ | ||
write-host "${libusb_implib} does not exist!" | ||
exit 1 | ||
} | ||
if (!(Test-Path "${libusb_dll}")) { | ||
write-host "${libusb_dll} does not exist!" | ||
exit 1 | ||
} | ||
echo "root=${libusb_incdir};${libusb_libdir}" >> $env:GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: 'Setup ninja' | ||
description: 'Setup ninja' | ||
inputs: | ||
version: | ||
description: 'Ninja version' | ||
default: '1.12.1' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: 'Calculate variables' | ||
id: calc | ||
shell: sh | ||
run: | | ||
case "${{ runner.os }}-${{ runner.arch }}" in | ||
"Linux-X86" | "Linux-X64") | ||
archive="ninja-linux.zip" | ||
;; | ||
"Linux-ARM64") | ||
archive="ninja-linux-aarch64.zip" | ||
;; | ||
"macOS-X86" | "macOS-X64" | "macOS-ARM64") | ||
archive="ninja-mac.zip" | ||
;; | ||
"Windows-X86" | "Windows-X64") | ||
archive="ninja-win.zip" | ||
;; | ||
"Windows-ARM64") | ||
archive="ninja-winarm64.zip" | ||
;; | ||
*) | ||
echo "Unsupported ${{ runner.os }}-${{ runner.arch }}" | ||
exit 1; | ||
;; | ||
esac | ||
echo "archive=${archive}" >> ${GITHUB_OUTPUT} | ||
echo "cache-key=${archive}-${{ inputs.version }}-${{ runner.os }}-${{ runner.arch }}" >> ${GITHUB_OUTPUT} | ||
- name: 'Restore cached ${{ steps.calc.outputs.archive }}' | ||
id: cache-restore | ||
uses: actions/cache/restore@main | ||
with: | ||
path: '${{ runner.temp }}/${{ steps.calc.outputs.archive }}' | ||
key: ${{ steps.calc.outputs.cache-key }} | ||
- name: 'Download ninja ${{ inputs.version }} for ${{ runner.os }} (${{ runner.arch }})' | ||
if: ${{ !steps.cache-restore.outputs.cache-hit }} | ||
shell: pwsh | ||
run: | | ||
Invoke-WebRequest "https://github.com/ninja-build/ninja/releases/download/v${{ inputs.version }}/${{ steps.calc.outputs.archive }}" -OutFile "${{ runner.temp }}/${{ steps.calc.outputs.archive }}" | ||
- name: 'Cache ${{ steps.calc.outputs.archive }}' | ||
if: ${{ !steps.cache-restore.outputs.cache-hit }} | ||
uses: actions/cache/save@main | ||
with: | ||
path: '${{ runner.temp }}/${{ steps.calc.outputs.archive }}' | ||
key: ${{ steps.calc.outputs.cache-key }} | ||
- name: 'Extract libusb' | ||
shell: pwsh | ||
run: | | ||
7z "-o${{ runner.temp }}/ninja-${{ inputs.version }}-${{ runner.arch }}" x "${{ runner.temp }}/${{ steps.calc.outputs.archive }}" | ||
- name: 'Set output variables' | ||
id: final | ||
shell: pwsh | ||
run: | | ||
echo "${{ runner.temp }}/ninja-${{ inputs.version }}-${{ runner.arch }}" >> $env:GITHUB_PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.