-
-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (35 loc) · 1.01 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
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
- uses: ilammy/[email protected]
with:
arch: ${{ matrix.arch }}
- name: Build mruby (windows)
working-directory: ${{ env.MRUBY_DIR }}
shell: bash
run: |
MRUBY_CONFIG=${{ env.CONFIG_DIR }}\build_config.windows.rb rake
- uses: actions/upload-artifact@v3
id: upload-windows-build
with:
name: windows-build
path: ${{ env.MRUBY_DIR }}/build