Skip to content

Commit 05b1098

Browse files
authored
Merge pull request #2 from naithar/feature/ci
CI implementation
2 parents 8b869d9 + a4a7254 commit 05b1098

File tree

6 files changed

+57
-0
lines changed

6 files changed

+57
-0
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Continuous integration
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
name: Build (macOS)
7+
runs-on: "macos-latest"
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
submodules: recursive
13+
14+
- name: Set up Python 3.x
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: '3.x'
18+
architecture: 'x64'
19+
20+
- name: Configuring Python
21+
run: |
22+
python -c "import sys; print(sys.version)"
23+
python -m pip install scons
24+
python --version
25+
scons --version
26+
27+
- name: Generate Headers
28+
run: |
29+
./scripts/generate_headers.sh || true
30+
31+
- name: Compile Plugins
32+
run: |
33+
./scripts/release_xcframework.sh 3.3
34+
ls -l bin/release
35+
36+
- uses: actions/upload-artifact@v2
37+
with:
38+
name: plugins
39+
path: bin/release/*
40+
retention-days: 4
41+
if-no-files-found: error

scripts/generate_headers.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
cd ./godot && \
3+
./../scripts/timeout scons platform=iphone target=release_debug

scripts/generate_static_library.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -e
23

34
# Compile static libraries
45

scripts/generate_xcframework.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -e
23

34
# Compile static libraries
45

scripts/release_xcframework.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -e
23

34
GODOT_PLUGINS="gamecenter inappstore icloud camera arkit apn"
45

scripts/timeout

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
(
3+
sleep 90
4+
5+
kill -s SIGTERM $$ && kill -0 $$ || exit 0
6+
sleep 1
7+
kill -s SIGKILL $$
8+
) 2> /dev/null &
9+
10+
exec "$@"

0 commit comments

Comments
 (0)