Skip to content

Commit 4e543d0

Browse files
committed
Implement build pipeline
1 parent fe03c96 commit 4e543d0

File tree

15 files changed

+618
-234
lines changed

15 files changed

+618
-234
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'Build Android Library'
2+
description: 'Builds the Android library using Fastlane'
3+
4+
runs:
5+
using: 'composite'
6+
7+
steps:
8+
- name: Checkout code
9+
uses: actions/checkout@v2
10+
11+
- name: Set up JDK
12+
uses: actions/setup-java@v3
13+
with:
14+
distribution: 'temurin'
15+
java-version: 11
16+
17+
- name: Set up Ruby
18+
uses: ruby/setup-ruby@1
19+
with:
20+
ruby-version: '2.7'
21+
22+
- name: Install Fastlane
23+
run: gem install fastlane
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version-file: .nvmrc
29+
30+
- name: Build Android Library with Fastlane
31+
run: cd android && fastlane android build_mendix_native
32+
33+
- name: Copy Android Library to Shared Directory
34+
run: mkdir -p ${{ github.workspace }}/shared/libs/android && cp ./artifacts/aar/mendixnative-release.aar ${{ github.workspace }}/shared/libs/android/mendixnative-release.aar
35+
shell: bash
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Build iOS Library'
2+
description: 'Builds the iOS library using Fastlane'
3+
4+
runs:
5+
using: 'composite'
6+
7+
steps:
8+
- name: Checkout code
9+
uses: actions/checkout@v2
10+
11+
- name: Install Fastlane
12+
run: gem install fastlane
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version-file: .nvmrc
18+
19+
- name: Build iOS Library with Fastlane
20+
run: cd ios && fastlane ios build_mendix_native
21+
22+
- name: Copy iOS Library to Shared Directory
23+
run: mkdir -p ${{ github.workspace }}/shared/libs/ios && cp ./ios/build/mendixnative/mendixnative.xcframework ${{ github.workspace }}/shared/libs/ios/mendixnative.xcframework
24+
shell: bash

.github/actions/setup/action.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/BuildLibrary.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: 'Build @mendix/native'
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-android:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Build Android Library
14+
uses: ./.github/actions/build_android
15+
16+
build-ios:
17+
runs-on: macos-latest
18+
19+
steps:
20+
- name: Build iOS Library
21+
uses: ./.github/actions/build_ios
22+
23+
create-release:
24+
needs: [build-android, build-ios]
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
30+
- name: Zip Libraries
31+
run: |
32+
cd ${{ github.workspace }}/shared/libs
33+
zip -r libraries.zip .
34+
35+
- name: Upload Libraries to Artifacts
36+
uses: actions/upload-artifact@v2
37+
with:
38+
name: mendixnative-archive
39+
path: ${{ github.workspace }}/shared/libs/libraries.zip

.github/workflows/ci.yml

Lines changed: 0 additions & 154 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ android/keystores/debug.keystore
6969
# Turborepo
7070
.turbo/
7171

72-
# generated by bob
73-
lib/
74-
7572
# fastlane specific
7673
**/fastlane/report.xml
7774

@@ -86,3 +83,5 @@ lib/
8683

8784
# Fastlane.swift runner binary
8885
**/fastlane/FastlaneRunner
86+
87+
/artifacts/*

ios/fastlane/Fastfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ fastlane_version "2.213.0"
88
default_platform :ios
99

1010
platform :ios do
11-
11+
1212
desc "Build a new version of MendixNative lib"
13-
lane :build_mendixnative do |options|
13+
lane :build_mendix_native do |options|
1414
sh("npm", "ci", "--legacy-peer-deps")
1515
cocoapods
1616

ios/fastlane/report.xml

Lines changed: 0 additions & 48 deletions
This file was deleted.

lib/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.npmrc
2+
androidlib/*.aar
3+
ios/mendixnative.xcframework/*
4+
node_modules
5+
artifacts

0 commit comments

Comments
 (0)