aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com>2020-09-23 14:23:52 -0700
committerGitHub <noreply@github.com>2020-09-23 14:23:52 -0700
commit5de956aaf0c80f58b1326591cd59bad72be79556 (patch)
tree5ff1b54043330b4810137d647b5d1854f28fe9da
parentbd803cc7cf75cf57f6c74692df636fc9f019245b (diff)
parentbf0697be716067991e1de3188afdd8c3b7ef61f3 (diff)
downloadplatform_external_Microsoft-GSL-5de956aaf0c80f58b1326591cd59bad72be79556.tar.gz
platform_external_Microsoft-GSL-5de956aaf0c80f58b1326591cd59bad72be79556.tar.bz2
platform_external_Microsoft-GSL-5de956aaf0c80f58b1326591cd59bad72be79556.zip
Merge pull request #929 from JordanMaples/yml_experiment
split GitHub action into multiple files.
-rw-r--r--.github/workflows/android.yml (renamed from .github/workflows/main.yml)46
-rw-r--r--.github/workflows/ios.yml51
-rw-r--r--README.md4
3 files changed, 54 insertions, 47 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/android.yml
index 8a9ca62..f53c428 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/android.yml
@@ -1,4 +1,4 @@
-name: CI
+name: CI_Android
on:
push:
branches: [ master ]
@@ -6,50 +6,6 @@ on:
branches: [ master ]
jobs:
- iOS:
- runs-on: macos-latest
- defaults:
- run:
- working-directory: build
- steps:
- - uses: actions/checkout@v2
-
- - name: Create build directory
- run: mkdir -p build
- working-directory: .
-
- - name: Configure
- run: |
- cmake \
- -GXcode \
- -DCMAKE_SYSTEM_NAME=iOS \
- "-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64" \
- -DCMAKE_OSX_DEPLOYMENT_TARGET=8 \
- -DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY \
- "-DMACOSX_BUNDLE_GUI_IDENTIFIER=GSL.\$(EXECUTABLE_NAME)" \
- -DMACOSX_BUNDLE_BUNDLE_VERSION=3.0.1 \
- -DMACOSX_BUNDLE_SHORT_VERSION_STRING=3.0.1 \
- ..
-
- - name: Build
- run: cmake --build . --parallel `sysctl -n hw.ncpu` --config Release -- -sdk iphonesimulator
-
- - name: Start simulator
- run: |
- RUNTIME=`xcrun simctl list runtimes iOS -j|jq '.runtimes|last.identifier'`
- UDID=`xcrun simctl list devices iPhone available -j|jq -r ".devices[$RUNTIME]|last.udid"`
- xcrun simctl bootstatus $UDID -b
-
- - name: Test
- run: |
- for TEST in `find tests/Release-iphonesimulator -depth 1 -name "*.app"`
- do
- xcrun simctl install booted $TEST
- TEST_ID=`plutil -convert json -o - $TEST/Info.plist|jq -r ".CFBundleIdentifier"`
- xcrun simctl launch --console booted $TEST_ID
- xcrun simctl uninstall booted $TEST_ID
- done
-
Android:
runs-on: macos-latest
defaults:
diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml
new file mode 100644
index 0000000..e6330bb
--- /dev/null
+++ b/.github/workflows/ios.yml
@@ -0,0 +1,51 @@
+name: CI_iOS
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ iOS:
+ runs-on: macos-latest
+ defaults:
+ run:
+ working-directory: build
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Create build directory
+ run: mkdir -p build
+ working-directory: .
+
+ - name: Configure
+ run: |
+ cmake \
+ -GXcode \
+ -DCMAKE_SYSTEM_NAME=iOS \
+ "-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64" \
+ -DCMAKE_OSX_DEPLOYMENT_TARGET=8 \
+ -DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY \
+ "-DMACOSX_BUNDLE_GUI_IDENTIFIER=GSL.\$(EXECUTABLE_NAME)" \
+ -DMACOSX_BUNDLE_BUNDLE_VERSION=3.0.1 \
+ -DMACOSX_BUNDLE_SHORT_VERSION_STRING=3.0.1 \
+ ..
+
+ - name: Build
+ run: cmake --build . --parallel `sysctl -n hw.ncpu` --config Release -- -sdk iphonesimulator
+
+ - name: Start simulator
+ run: |
+ RUNTIME=`xcrun simctl list runtimes iOS -j|jq '.runtimes|last.identifier'`
+ UDID=`xcrun simctl list devices iPhone available -j|jq -r ".devices[$RUNTIME]|last.udid"`
+ xcrun simctl bootstatus $UDID -b
+
+ - name: Test
+ run: |
+ for TEST in `find tests/Release-iphonesimulator -depth 1 -name "*.app"`
+ do
+ xcrun simctl install booted $TEST
+ TEST_ID=`plutil -convert json -o - $TEST/Info.plist|jq -r ".CFBundleIdentifier"`
+ xcrun simctl launch --console booted $TEST_ID
+ xcrun simctl uninstall booted $TEST_ID
+ done
diff --git a/README.md b/README.md
index 9063596..c3005c4 100644
--- a/README.md
+++ b/README.md
@@ -108,8 +108,8 @@ If you successfully port GSL to another platform, we would love to hear from you
Target | CI/CD Status
:------- | -----------:
-iOS | ![CI](https://github.com/microsoft/GSL/workflows/CI/badge.svg)
-Android | ![CI](https://github.com/microsoft/GSL/workflows/CI/badge.svg)
+iOS | ![CI_iOS](https://github.com/microsoft/GSL/workflows/CI_iOS/badge.svg)
+Android | ![CI_Android](https://github.com/microsoft/GSL/workflows/CI_Android/badge.svg)
Note: These CI/CD steps are run with each pull request, however failures in them are non-blocking.