-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathbuild-mruby-compiler.android.yaml
More file actions
44 lines (37 loc) · 1.04 KB
/
Copy pathbuild-mruby-compiler.android.yaml
File metadata and controls
44 lines (37 loc) · 1.04 KB
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
name: Build mruby-compiler (Android)
on:
workflow_call:
workflow_dispatch:
env:
MRUBY_DIR: ${{ github.workspace }}/src/ChibiRuby.Compiler/mruby
CONFIG_DIR: ${{ github.workspace }}/src/ChibiRuby.Compiler
jobs:
build-android:
runs-on: ubuntu-latest
timeout-minutes: 15
outputs:
artifact-url: ${{ steps.upload-build.artifact-url }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Setup Android NDK
id: setup-ndk
uses: nttld/setup-ndk@v1
with:
ndk-version: r26d
add-to-path: false
- name: Build mruby-compiler (Android)
working-directory: ${{ env.MRUBY_DIR }}
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
run: |
MRUBY_CONFIG=${{ env.CONFIG_DIR }}/build_config.android.rb rake
- uses: actions/upload-artifact@v4
id: upload-build
with:
name: android-build
path: ${{ env.MRUBY_DIR }}/build