-
-
Notifications
You must be signed in to change notification settings - Fork 15
49 lines (38 loc) · 1.08 KB
/
build-mruby.windows.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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