forked from meganz/iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (25 loc) · 1.13 KB
/
main.yml
File metadata and controls
34 lines (25 loc) · 1.13 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
name: Build
on: [push]
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Update submodules
run: git submodule update --init --recursive
- name: Download the third party directory
run: curl -L 'https://www.dropbox.com/s/0al5rl9afi2al73/libraryFiles.zip?dl=0' --output libraryFiles.zip
- name: List all files
run: ls
- name: Size of zip
run: du -h libraryFiles.zip
- name: Unzip the third party library
run: unzip libraryFiles.zip -d iMEGA/Vendor/sdk/bindings/ios/3rdparty/
- name: Move files from libraryFiles folder to its parent directory
run: mv iMEGA/Vendor/sdk/bindings/ios/3rdparty/libraryFiles/* iMEGA/Vendor/sdk/bindings/ios/3rdparty/
- name: Run the cmake command on karere directory
run: cmake -P iMEGA/Vendor/Karere/src/genDbSchema.cmake
- name: Move the CPP file generated by the cmake command to iMEGA/Vendor/Karere/src/
run: mv karereDbSchema.cpp iMEGA/Vendor/Karere/src/
- name: Build the project
run: xcodebuild clean build -workspace "iMEGA.xcworkspace" -scheme "MEGA" -sdk iphonesimulator