Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/actions/build_android/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 'Build Android Library'
description: 'Builds the Android library using Fastlane'

runs:
using: 'composite'

steps:
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'

- name: Install Fastlane
run: gem install fastlane
shell: bash

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc

- name: Build Android Library with Fastlane
run: cd android && fastlane android build_mendix_native
shell: bash

- name: Copy Android Library to Shared Directory
run: mkdir -p ${{ github.workspace }}/shared/libs/android && cp ./artifacts/aar/mendixnative-release.aar ${{ github.workspace }}/shared/libs/android/mendixnative-release.aar
shell: bash
23 changes: 23 additions & 0 deletions .github/actions/build_ios/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'Build iOS Library'
description: 'Builds the iOS library using Fastlane'

runs:
using: 'composite'

steps:
- name: Install Fastlane
run: gem install fastlane
shell: bash

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc

- name: Build iOS Library with Fastlane
run: cd ios && fastlane ios build_mendix_native
shell: bash

- name: Copy iOS Library to Shared Directory
run: mkdir -p ${{ github.workspace }}/shared/libs/ios && cp -R ./ios/build/mendixnative/mendixnative.xcframework ${{ github.workspace }}/shared/libs/ios/mendixnative.xcframework
shell: bash
27 changes: 0 additions & 27 deletions .github/actions/setup/action.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/BuildLibrary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: 'Build @mendix/native'

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-android:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Build Android Library
uses: ./.github/actions/build_android

build-ios:
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Build iOS Library
uses: ./.github/actions/build_ios

create-release:
needs: [build-android, build-ios]
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Zip Libraries
run: |
cd ${{ github.workspace }}/shared/libs
zip -r libraries.zip .

- name: Upload Libraries to Artifacts
uses: actions/upload-artifact@v4
with:
name: mendixnative-archive
path: ${{ github.workspace }}/shared/libs/libraries.zip
154 changes: 0 additions & 154 deletions .github/workflows/ci.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ android/keystores/debug.keystore
# Turborepo
.turbo/

# generated by bob
lib/

# fastlane specific
**/fastlane/report.xml

Expand All @@ -86,3 +83,5 @@ lib/

# Fastlane.swift runner binary
**/fastlane/FastlaneRunner

/artifacts/*
4 changes: 2 additions & 2 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ fastlane_version "2.213.0"
default_platform :ios

platform :ios do

desc "Build a new version of MendixNative lib"
lane :build_mendixnative do |options|
lane :build_mendix_native do |options|
sh("npm", "ci", "--legacy-peer-deps")
cocoapods

Expand Down
48 changes: 0 additions & 48 deletions ios/fastlane/report.xml

This file was deleted.

5 changes: 5 additions & 0 deletions lib/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.npmrc
androidlib/*.aar
ios/mendixnative.xcframework/*
node_modules
artifacts
Loading