Support more gamepads with GameController API #21
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
name: build windows MSVC x86, x64, ARM64 | |
on: | |
pull_request: | |
permissions: | |
contents: write | |
jobs: | |
build_i386: | |
runs-on: windows-2019 | |
env: | |
BUILD_TYPE: Release | |
VCPKG_TRIPLET: x86-windows-static | |
CMAKE_ARCH: Win32 | |
defaults: | |
run: | |
working-directory: ${{github.workspace}} | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v3 | |
- name: run vcpkg | |
uses: lukka/run-vcpkg@v10.7 | |
with: | |
vcpkgGitCommitId: a7b6122f6b6504d16d96117336a0562693579933 | |
runVcpkgInstall: true | |
prependedCacheKey: ${{env.VCPKG_TRIPLET}} | |
- name: Set up CMake | |
run: md build && cd build && cmake ${{github.workspace}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=${{env.VCPKG_TRIPLET}} -DVCPKG_BUILD_TYPE=release -G "Visual Studio 16 2019" -A ${{env.CMAKE_ARCH}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: onsyuri-${{env.VCPKG_TRIPLET}} | |
path: ${{github.workspace}}/build/${{env.BUILD_TYPE}} | |
- name: prepare release | |
run: mv ${{github.workspace}}/build/${{env.BUILD_TYPE}}/onsyuri.exe ${{github.workspace}}/onsyuri_${{github.ref_name}}_x86_win.exe | |
- name: create release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: ${{github.workspace}}/onsyuri_${{github.ref_name}}_x86_win.exe | |
allowUpdates: "true" | |
token: ${{secrets.GITHUB_TOKEN}} | |
build_amd64: | |
runs-on: windows-2019 | |
env: | |
BUILD_TYPE: Release | |
VCPKG_TRIPLET: x64-windows-static | |
CMAKE_ARCH: x64 | |
defaults: | |
run: | |
working-directory: ${{github.workspace}} | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v3 | |
- name: run vcpkg | |
uses: lukka/run-vcpkg@v10.7 | |
with: | |
vcpkgGitCommitId: a7b6122f6b6504d16d96117336a0562693579933 | |
runVcpkgFormatString: '[`install`, `--recurse`, `--clean-after-build`, `--x-install-root`, `$[env.VCPKG_INSTALLED_DIR]`, `--triplet`, `x64-windows-static`]' | |
runVcpkgInstall: true | |
prependedCacheKey: ${{env.VCPKG_TRIPLET}} | |
- name: Set up CMake | |
run: md build && cd build && cmake ${{github.workspace}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=${{env.VCPKG_TRIPLET}} -DVCPKG_BUILD_TYPE=release -G "Visual Studio 16 2019" -A ${{env.CMAKE_ARCH}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: onsyuri-${{env.VCPKG_TRIPLET}} | |
path: ${{github.workspace}}/build/${{env.BUILD_TYPE}} | |
- name: prepare release | |
run: mv ${{github.workspace}}/build/${{env.BUILD_TYPE}}/onsyuri.exe ${{github.workspace}}/onsyuri_${{github.ref_name}}_amd64_win.exe | |
- name: create release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: ${{github.workspace}}/onsyuri_${{github.ref_name}}_amd64_win.exe | |
allowUpdates: "true" | |
token: ${{secrets.GITHUB_TOKEN}} | |
build_arm64: | |
runs-on: windows-2019 | |
env: | |
BUILD_TYPE: Release | |
VCPKG_TRIPLET: arm64-windows-static | |
CMAKE_ARCH: ARM64 | |
defaults: | |
run: | |
working-directory: ${{github.workspace}} | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v3 | |
- name: run vcpkg | |
uses: lukka/run-vcpkg@v10.7 | |
with: | |
vcpkgGitCommitId: a7b6122f6b6504d16d96117336a0562693579933 | |
runVcpkgFormatString: '[`install`, `--recurse`, `--clean-after-build`, `--x-install-root`, `$[env.VCPKG_INSTALLED_DIR]`, `--triplet`, `${{env.VCPKG_TRIPLET}}`]' | |
runVcpkgInstall: true | |
prependedCacheKey: ${{env.VCPKG_TRIPLET}} | |
- name: Set up CMake | |
run: md build && cd build && cmake ${{github.workspace}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=${{env.VCPKG_TRIPLET}} -DVCPKG_BUILD_TYPE=release -G "Visual Studio 16 2019" -A ${{env.CMAKE_ARCH}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: onsyuri-${{env.VCPKG_TRIPLET}} | |
path: ${{github.workspace}}/build/${{env.BUILD_TYPE}} | |
- name: prepare release | |
run: mv ${{github.workspace}}/build/${{env.BUILD_TYPE}}/onsyuri.exe ${{github.workspace}}/onsyuri_${{github.ref_name}}_arm64_win.exe | |
- name: create release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: ${{github.workspace}}/onsyuri_${{github.ref_name}}_arm64_win.exe | |
allowUpdates: "true" | |
token: ${{secrets.GITHUB_TOKEN}} |