Try to use ridk #90
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: Windows Binary | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'ext/rubyraylib/**' | |
- 'CMakeLists.txt' | |
- 'third_party/**' | |
- '.github/workflows/windows.yml' | |
pull_request: | |
paths: | |
- 'ext/rubyraylib/**' | |
- 'CMakeLists.txt' | |
- 'third_party/**' | |
- '.github/workflows/windows.yml' | |
jobs: | |
build-windows: | |
name: windows-x86_64 | |
runs-on: windows-latest | |
env: | |
OS: windows | |
ARCH: x86_64 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3 | |
- name: Install MSYS2 and dependencies | |
run: | | |
ridk exec pacman -S --noconfirm base-devel mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-ninja | |
shell: bash | |
- name: Configure CMake | |
shell: bash | |
run: cmake -B build -DCMAKE_BUILD_TYPE:STRING=Release | |
- name: Build CMake | |
shell: bash | |
run: cmake --build build --config Release --target all | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: raylib-cruby-${{ env.ARCH }} | |
path: | | |
${{ github.workspace }}/build/*.exe | |
${{ github.workspace }}/build/*.dll | |
retention-days: 90 | |