Skip to content

Build mruby (Windows) #16

Build mruby (Windows)

Build mruby (Windows) #16

name: Build mruby (Windows)
on:
workflow_call:
workflow_dispatch:
env:
MRUBY_DIR: ${{ github.workspace }}\src\vitalrouter-mruby\ext\mruby
CONFIG_DIR: ${{ github.workspace }}\src\vitalrouter-mruby
jobs:
build-windows:
runs-on: windows-latest
strategy:
matrix:
arch:
- amd64
# - amd64_arm64
outputs:
artifact-url: ${{ steps.upload-windows-build.artifact-url }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: ruby/setup-ruby@v1
with:
ruby-version: mswin
# ruby-version: '3.3'
# - uses: ilammy/[email protected]
# with:
# arch: ${{ matrix.arch }}
- name: Build mruby (windows)
working-directory: ${{ env.MRUBY_DIR }}
shell: bash
run: |
MRUBY_CONFIG=${GITHUB_WORKSPACE}/src/vitalrouter-mruby/build_config.windows.rb rake
- uses: actions/upload-artifact@v3
id: upload-windows-build
with:
name: windows-build
path: ${{ env.MRUBY_DIR }}/build