Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #1

Open
wants to merge 371 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
371 commits
Select commit Hold shift + click to select a range
eabd935
addressing some comments
JordanMaples Feb 3, 2020
5b8cf54
casting -1 for dynamic extent
JordanMaples Feb 3, 2020
17e372c
Update include/gsl/span
JordanMaples Feb 3, 2020
9bb900e
Update include/gsl/span
JordanMaples Feb 3, 2020
a430823
Update include/gsl/string_span
JordanMaples Feb 3, 2020
d0fdbdb
fixing suppress spacing
JordanMaples Feb 3, 2020
3e40b3f
Merge branch 'dev/jomaples/unsigned' of https://github.com/jordanmapl…
JordanMaples Feb 3, 2020
d9d6ea8
remove comparison to dynamic_extent
JordanMaples Feb 3, 2020
1815791
Change iterator from Span* & ptrdiff_t to pointer, pointer, pointer
JordanMaples Feb 4, 2020
f4ee6ee
Update include/gsl/span
JordanMaples Feb 4, 2020
24646c6
Update include/gsl/span
JordanMaples Feb 4, 2020
827fafd
Update include/gsl/span
JordanMaples Feb 4, 2020
81c2a1d
addressing feedback
JordanMaples Feb 4, 2020
e0dc809
addressing feedback
JordanMaples Feb 4, 2020
2b7a8f1
Merge branch 'dev/jomaples/unsigned' of https://github.com/jordanmapl…
JordanMaples Feb 4, 2020
877816f
addressing feedback
JordanMaples Feb 4, 2020
592c28c
fixing spaces in gsl_suppress
JordanMaples Feb 4, 2020
49e7ed1
updating comparisons
JordanMaples Feb 4, 2020
4ec7058
Update include/gsl/span
JordanMaples Feb 4, 2020
e9fea77
Update include/gsl/span
JordanMaples Feb 4, 2020
0c6ce42
refactoring index_type to size_type, changing expects
JordanMaples Feb 4, 2020
db21344
Merge branch 'dev/jomaples/unsigned' of https://github.com/jordanmapl…
JordanMaples Feb 4, 2020
61c6ef8
remove index_type from string_span, update comments
JordanMaples Feb 4, 2020
5a1e4f3
update index_type to size_type, fix a couple Expects
JordanMaples Feb 4, 2020
d7e1611
gsl::index ptrdiff_t -> size_t. remove span::at span::operator().
JordanMaples Feb 5, 2020
5cf1610
prevent overflow in size_bytes. fix compilation issue for clang 3.6 a…
JordanMaples Feb 5, 2020
432be48
captureing result of iterator comparisons to address -Wunused-comparison
JordanMaples Feb 5, 2020
7fcc142
addressing travis errors
JordanMaples Feb 5, 2020
ff5f797
remove brackets around this deref for span_iterator operators
JordanMaples Feb 5, 2020
45f016d
add back capture variable for comparison in span_test
JordanMaples Feb 5, 2020
3b9d15f
reverting changes to gsl::index
JordanMaples Feb 6, 2020
a49ff1b
update span specialization of at, change some tests back to int i wit…
JordanMaples Feb 6, 2020
3f0d733
Fix incorrect package name for vcpkg
cbuchart Feb 7, 2020
202f332
Merge pull request #845 from cbuchart/master
JordanMaples Feb 7, 2020
377b2db
almost parity with std::span
JordanMaples Feb 7, 2020
b81d6e4
constexpr the make_subspan calls.
JordanMaples Feb 7, 2020
d8fa68c
address build failures
JordanMaples Feb 7, 2020
ebe8844
Make GSL includes based on CMAKE_INSTALL_INCLUDEDIR
Feb 8, 2020
886fc95
Remove PUBLIC_HEADER attribute from `install` command
Feb 8, 2020
9c0c6b2
Add Microsoft.GSL::GSL alias for GSL
Feb 8, 2020
849f140
Add a note on CMake usage of exported target to the README
Feb 8, 2020
dd78144
msvc and gcc work locally
JordanMaples Feb 10, 2020
cce6ee5
address issue with v140 toolset
JordanMaples Feb 11, 2020
926aaec
reviewed the pr in its entirety and made some slight modifications. R…
JordanMaples Feb 12, 2020
41ae38f
addressing a few more comments and adding gsl-std span compatibility …
JordanMaples Feb 14, 2020
67a7f7e
errors in appveyor are indicating that AsWritableByesCompilersFor nee…
JordanMaples Feb 14, 2020
b6b1e9c
assert -> expect_true
SloppyJaconda Feb 15, 2020
6b01a04
Update span_compatibility_tests.cpp
JordanMaples Feb 15, 2020
8d6ca32
GTest latest is breaking, rolling back to 1.10 until further investig…
JordanMaples Feb 18, 2020
8ba6cb1
Merge branch 'dev/jomaples/unsigned' of https://github.com/jordanmapl…
JordanMaples Feb 18, 2020
f4c608f
addressing comments
JordanMaples Feb 18, 2020
4660369
rewrite operators in iterator to take advantage of nrvo
JordanMaples Feb 18, 2020
691a78c
Merge pull request #844 from JordanMaples/dev/jomaples/unsigned
JordanMaples Feb 19, 2020
94f43d4
splitting up span's standard and non-standard behavior
JordanMaples Feb 19, 2020
c853017
forgot nl @ eof in span_ext_tests.cpp
JordanMaples Feb 19, 2020
3144082
forward declare span and remove header
JordanMaples Feb 24, 2020
ac37004
clang defines struct as array where msvc and g++ define it as class.
JordanMaples Feb 24, 2020
89271b8
fix apple clang forward declaration
JordanMaples Feb 24, 2020
60372b6
apple-clang failed again, forcing class instead of struct
JordanMaples Feb 24, 2020
0f60c68
disgusting test to get apple clang to work, dont look at it
JordanMaples Feb 24, 2020
32e5fea
test
JordanMaples Feb 24, 2020
5d54cad
just pulling in array header if we detect apple clang
JordanMaples Feb 24, 2020
fc54e0d
just pulling in array header if we detect apple clang
JordanMaples Feb 24, 2020
d2fdeda
Merge branch 'dev/jomaples/split_span' of https://github.com/jordanma…
JordanMaples Feb 25, 2020
4a6a7a0
add back array header, will remove in separate pr
JordanMaples Feb 25, 2020
a3b8697
Merge pull request #847 from JordanMaples/dev/jomaples/split_span
JordanMaples Feb 26, 2020
4b64391
Merge pull request #784 from hanst99/hunterization
JordanMaples Feb 26, 2020
769f019
moving exception include
Mar 4, 2020
b305240
added some comments and ran clang-format
Mar 6, 2020
ce4d689
shuffle around code to bring includes to top.
Mar 6, 2020
06adf55
update kernel mode detection macro
Mar 12, 2020
d90fefe
Merge pull request #851 from JordanMaples/dev/jomaples/exception
JordanMaples Mar 17, 2020
1dd1320
test commit to get extra eyes on the problem
Mar 17, 2020
9b3ac8d
discussed the issue with Casey Carter, the span ctor changes are accu…
Mar 17, 2020
f8bcb7d
applied clang-format
Mar 17, 2020
6eab19d
moving decl so we dont get the stl_nullptr is not used warning
Mar 17, 2020
ddde9e1
update convertibility test
Mar 19, 2020
0357a02
Apply suggestions from code review
JordanMaples Mar 23, 2020
f4c2292
Update to use the latest CMake releases
Farwaykorse Mar 26, 2020
30c0687
Merge branch 'master' into TravisCI
Farwaykorse Mar 26, 2020
610c403
TravisCI: add Clang-10
Farwaykorse Mar 26, 2020
511faf0
TravisCI: remove deprecated key "sudo" and replace alias "matrix" for…
Farwaykorse Mar 26, 2020
04809f8
TravisCI: moved "based on" comment to relevant legacy section
Farwaykorse Mar 26, 2020
5e21831
Suppress test for GCC 8.3 triggering "-Warray-bounds"
Farwaykorse Mar 26, 2020
226a854
Merge pull request #835 from Farwaykorse/TravisCI
JordanMaples Mar 26, 2020
830b081
Fix debugger visualizer for Ext=gsl::dynamic_extent
pps83 Mar 27, 2020
01d206f
adding additional filtering
Apr 8, 2020
c5dd0e6
Merge pull request #3 from JordanMaples/dev/jomaples/lwg3255
JordanMaples Apr 8, 2020
15dd17a
Merge branch 'master' into dev/jomaples/LWG3255
Apr 8, 2020
ff45864
Merge branch 'dev/jomaples/LWG3255' of https://github.com/JordanMaple…
Apr 8, 2020
6e2398b
Solve MSVC warning C4668: __GNUC__ & __clang__ not defined as a prepr…
Farwaykorse Apr 9, 2020
611674d
GCC "-Warray-bounds" warning persists with release 8.4
Farwaykorse Apr 9, 2020
bc7ea7a
Merge pull request #859 from Farwaykorse/patch-2
JordanMaples Apr 9, 2020
b0b933b
Merge pull request #858 from Farwaykorse/patch-1
JordanMaples Apr 9, 2020
f85166a
Merge branch 'master' into dev/jomaples/LWG3255
Apr 9, 2020
2f9d873
added additional filtering to Apple clang versions 9.4 and 10.1 for t…
Apr 9, 2020
6ef56d7
fixed a couple typos
Apr 9, 2020
809aee2
testing different major/minor for Apple suppression
Apr 9, 2020
b7d9d75
another attempt at apple clang version filtering
Apr 9, 2020
8d907da
prevent comparison for apple clang versions older than 11
Apr 9, 2020
5ca0232
another test
Apr 9, 2020
ffbfcc0
apply clang-format to the span_compatibility_tests.
Apr 9, 2020
efbce17
testing one of CaseyCarter's comments
Apr 10, 2020
f7aae78
Merge pull request #854 from JordanMaples/dev/jomaples/LWG3255
JordanMaples Apr 10, 2020
8b8c25f
Fix link to Google Test
karzhenkov Apr 13, 2020
24dc828
Merge pull request #860 from karzhenkov/fix-googletest-link
JordanMaples Apr 13, 2020
044849d
Merge pull request #823 from RedDwarf69/std_byte_fix
JordanMaples Apr 13, 2020
7341c5d
implement LWG3320 by deleting const_iterator and const_reverse_iterator
Apr 14, 2020
9cb376c
adding back free functions for [c|cr][begin|end]
Apr 14, 2020
b438556
Merge pull request #861 from JordanMaples/dev/jomaples/lwg3320
JordanMaples Apr 15, 2020
aeb65ef
Fixed installation on GNU/Linux distributions.
xvitaly Apr 17, 2020
9f6a9a5
Merge pull request #867 from xvitaly/fix-cmake-install
JordanMaples Apr 17, 2020
f5cf010
Search for GoogleTest via pkg-config first
mymedia2 Apr 18, 2020
fb1243d
suppress code analysis warning
Apr 19, 2020
afa2f3f
fully qualify ptrdiff_t in multi_span and remove it from gsl\gsl
Apr 21, 2020
61534ca
Changed implementation of gsl::narrow to throw gsl::narrowing_error
londey Apr 22, 2020
70e1317
Update include/gsl/gsl
JordanMaples Apr 22, 2020
4eb554d
Removed no_exception_throw_tests.cpp
londey Apr 23, 2020
14acdcd
Removed unused #include
londey Apr 23, 2020
94d6a35
Fixed narrow unit test EXPECT_THROW
londey Apr 23, 2020
3a5b83d
Removed unused contant from test
londey Apr 23, 2020
601b55e
Merge pull request #873 from londey/narrow-throw
JordanMaples Apr 23, 2020
3da256d
Merge pull request #874 from JordanMaples/dev/jomaples/multi_span-cle…
JordanMaples Apr 23, 2020
1999b48
Merge pull request #870 from beinhaerter/suppress_span_warning
JordanMaples Apr 23, 2020
879335c
CMakeLists: add VERSION to project() and package
leha-bot Apr 26, 2020
29297e7
noexcept for make_(strict_)not_null and not_null comparisons
Apr 24, 2020
de05364
CMakeLists: Drop ARCH_INDEPENDENT as it does not supported via old CMake
leha-bot Apr 28, 2020
1e5f44d
Refactor `narrow` - simplify & move `is_same_signedness` into functio…
robert-andrzejuk Apr 29, 2020
8484704
In `narrow` refactor `!is_same_signedness` to `is_different_signedness`
robert-andrzejuk Apr 29, 2020
0ab350f
enables iOS and Android testing
dipidoo May 4, 2020
91858ca
forces GTEST_HAS_DEATH_TEST
dipidoo May 4, 2020
839de21
Merge pull request #879 from leha-bot/cmake/add-version-to-cmake-project
JordanMaples May 6, 2020
1e4e237
updates README.md with iOS & Android support
dipidoo May 7, 2020
0843ea4
Merge pull request #884 from dipidoo/master
JordanMaples May 8, 2020
09caa20
changing matrices and removing msc < 1910 work arounds
May 12, 2020
a6d3821
missed a GSL_CONSTEXPR_NARROW for removal
May 12, 2020
0312314
pushing bad code that only reveals itself in gcc < 6 to test the allo…
May 13, 2020
2a483c1
Update span
JordanMaples May 13, 2020
f0160fc
removing breaking test code. removing compiler versions n-2 and beyon…
May 13, 2020
33544a7
revised the readme
May 14, 2020
2085c7a
initial impl of P1976R2
May 19, 2020
552cd20
addressing most of Casey's comments
May 20, 2020
d346823
renaming extent to prevent shadowing of static member
May 20, 2020
31604f4
string_span_tests CLRF -> LF
May 20, 2020
ed3fea6
implementing some of Casey's recommendations
May 20, 2020
1e44481
Finished integrating CaseyCarter's changes into span
May 20, 2020
313a112
fix spacing
May 20, 2020
3475081
updating table with compiler versions that are in the test matrix
May 20, 2020
7e4ed8d
addressing Stephan's comments
May 20, 2020
25e7af9
fixing clang build break
May 21, 2020
8cd1941
Merge pull request #887 from JordanMaples/dev/jomaples/p1976r2
JordanMaples May 21, 2020
283e314
Merge pull request #857 from pps83/master-natvis
JordanMaples May 21, 2020
0dbdf32
Merge pull request #886 from JordanMaples/dev/jomaples/build_matrix
JordanMaples May 26, 2020
689abc2
adding container ctad
May 28, 2020
6c405a1
adding a test to verify that the additional ctad works
May 29, 2020
c143a07
Add string_view test case and modify deduction guides
CaseyCarter May 29, 2020
9720cc5
Merge pull request #6 from CaseyCarter/deduction_guides
JordanMaples May 29, 2020
c4a2ce6
wrapping string_view checks in deduction guide checks to prevent 'mac…
May 29, 2020
4d2090e
fixed typo
May 29, 2020
72803a7
adding template type to the vector to suppress clang-10 warning that …
May 29, 2020
794d7bb
Merge pull request #891 from JordanMaples/dev/jomaples/missing_span_ctad
JordanMaples May 29, 2020
78744ed
update cmake project version to reflect upcoming GSL 3.1.0 release
Jun 3, 2020
0f6dbc9
Merge pull request #892 from JordanMaples/dev/jomaples/gsl3.1.0
JordanMaples Jun 4, 2020
cfe9baf
Added ARCH_INDEPENDENT parameter to write_basic_package_version_file().
xvitaly Jun 6, 2020
98002ab
Merge pull request #893 from xvitaly/fix-noarch
JordanMaples Jun 10, 2020
be3bc0e
Update README.md
JordanMaples Jul 6, 2020
3010303
Merge pull request #897 from microsoft/JordanMaples-patch-1
JordanMaples Jul 7, 2020
853b061
remove msvc < 1910 checks as those versions are no longer supported.
Jul 15, 2020
478d876
remove pragma pop for constexpr macro
Jul 15, 2020
4c66cea
remove gsl namespace qualification within the gsl namespace
Jul 15, 2020
bf6e103
Merge pull request #898 from JordanMaples/dev/jomaples/remove_pragma_…
JordanMaples Jul 15, 2020
f79ed1b
Merge pull request #876 from beinhaerter/make_notnull_noexcept
JordanMaples Jul 15, 2020
559f8cf
Merge pull request #899 from JordanMaples/dev/jomaples/cleanup_namesp…
JordanMaples Jul 15, 2020
ca3bf77
Fix GSL_SUPPRESS definition on Intel C++ Compiler
TManhente Aug 5, 2020
552eedb
Merge pull request #881 from robert-andrzejuk/patch-1
JordanMaples Aug 5, 2020
f8d9f2e
Merge pull request #906 from TManhente/intel_suppress_fix
JordanMaples Aug 5, 2020
2231d73
zstring_span: fix for Expects, simplify functions
Aug 6, 2020
63379b7
Merge pull request #850 from beinhaerter/zstring_ctor
JordanMaples Aug 6, 2020
01eaf5b
macro version
Aug 10, 2020
c482c82
experimenting with splitting the yml files into their own runs
Aug 11, 2020
13f57a1
update ci names
Aug 11, 2020
97cb97c
readme update for the updated badges
Aug 11, 2020
bf0697b
update readme to have the correct asset badges. This will render corr…
Aug 11, 2020
72ddfb7
created new file for gsl_narrow, might want to rename if we go this a…
Aug 12, 2020
afe8244
change macro test to use __cplusplus instead of __has_cpp_attribute
Aug 12, 2020
2469db7
add copyright header
Aug 12, 2020
4da6a26
forgot newline at eof.
Aug 12, 2020
9355982
Merge pull request #868 from mymedia2/master
JordanMaples Aug 12, 2020
ef714fa
Merge pull request #676 from ericLemanissier/patch-3
JordanMaples Aug 12, 2020
0c80f51
Merge pull request #908 from JordanMaples/fix_nodiscard_in_finally_macro
JordanMaples Aug 12, 2020
74968d3
Merge branch 'master' into exception_fix_new_file
Aug 13, 2020
d09f154
Fix comment typos
jwakely Aug 13, 2020
e09326e
Pass correct value to std::hash
jwakely Aug 13, 2020
a9ffcf7
add a table of features
kuzkry Sep 15, 2019
dad3d80
Update README.md
Aug 12, 2020
ec471ab
Merge pull request #912 from jwakely/patch-1
JordanMaples Aug 13, 2020
83ce710
Merge pull request #807 from kuzkry/implemented_features
JordanMaples Aug 13, 2020
06c4619
Merge pull request #910 from JordanMaples/exception_fix_new_file
JordanMaples Aug 13, 2020
c25a754
Fix finally with mutable lvalue invokable
Aug 14, 2020
e426750
Merge pull request #720 from menuet/fix-finally
JordanMaples Aug 17, 2020
6aa755e
Merge pull request #913 from jwakely/notnull_hash
JordanMaples Aug 20, 2020
81957f6
fix typo in readme
macjohnny Aug 24, 2020
b6451c5
Merge pull request #920 from macjohnny/patch-1
JordanMaples Aug 24, 2020
4a4bb3c
adding changes suggested by Jonathan Wakely
Aug 26, 2020
6c51863
Merge pull request #921 from JordanMaples/not_null-changes
JordanMaples Aug 27, 2020
5fb0c86
constexpr string_span stuff
Aug 27, 2020
d58e50c
Merge pull request #922 from JordanMaples/constexpr-string_span
JordanMaples Aug 27, 2020
21b69e5
Updating span section of Supported Features table.
JordanMaples Aug 28, 2020
e7e3bf4
add what to narrowing_error
Sep 14, 2020
bd803cc
Merge pull request #928 from JordanMaples/narrowing_error-add-what
JordanMaples Sep 14, 2020
5de956a
Merge pull request #929 from JordanMaples/yml_experiment
JordanMaples Sep 23, 2020
5e77355
initial deprecation of all types in string_span
Sep 30, 2020
a64c489
added deprecation message
Oct 1, 2020
7721de8
ran clang-format over string_span
Oct 1, 2020
3f68a00
fixed botched formatting
Oct 1, 2020
1665f07
updating readme to reflect the deprecation of string_span
Oct 1, 2020
bd23bdc
Merge pull request #931 from JordanMaples/deprecate-string_span
JordanMaples Oct 2, 2020
2ccf36b
eliminate warning, use narrow_cast instead of static_cast
Oct 14, 2020
dc6fdff
Update include/gsl/span
beinhaerter Oct 19, 2020
2af9b11
Update include/gsl/span
beinhaerter Oct 19, 2020
6432f92
Merge pull request #937 from beinhaerter/cast_warning
JordanMaples Oct 20, 2020
cfb4db0
added GSL_ prefix to VS_ADD_NATIVE_VISUALIZERS
Oct 22, 2020
8009a70
use `narrow_cast`
tjs137 Oct 24, 2020
9fa2c5d
Merge pull request #942 from tjs137/patch-1
JordanMaples Oct 26, 2020
6f45293
Merge pull request #941 from JordanMaples/cmake_update
JordanMaples Oct 26, 2020
736b62a
Allow usage on platforms not providing iostreams (#935)
mtnpke Oct 28, 2020
b6c57e2
Include gsl_narrow from gsl and fix comment. (#939)
bowie7070 Oct 28, 2020
d74ae54
Update README.md
JordanMaples Oct 28, 2020
179fba5
Azure pipeline (#8) (#943)
JordanMaples Oct 28, 2020
2c3ab02
Fix C26481 warning in span array ctor (#944)
JordanMaples Oct 29, 2020
e8978c0
Remove deprecation of basic_zstring et al (#945)
JordanMaples Oct 29, 2020
a150aaa
renaming main logic files. Added warning message of the removal and i…
JordanMaples Oct 30, 2020
9150ce9
Adding std::hash<not_null<T>> tests to notnull_tests.cpp (#947)
JordanMaples Nov 4, 2020
00d4a5a
suppress bounds.1 (#950)
beinhaerter Nov 11, 2020
804a14f
Update README.md
JordanMaples Nov 11, 2020
959ce58
Update gsl (#954)
JordanMaples Nov 16, 2020
475b785
Use CMAKE_CXX_STANDARD when available (#953)
Nov 16, 2020
0140ab1
Change build status badges (#955)
JordanMaples Nov 24, 2020
ec6cd75
Remove unneccesssary compile definitions (#957)
Dec 2, 2020
a6cef6b
remove multi_span (#958)
JordanMaples Dec 9, 2020
d15cb5f
Minor cmake changes (#961)
Dec 15, 2020
a47352c
Delete appveyor.yml
JordanMaples Dec 18, 2020
eca0eca
[cmake] Adding options for INSTALL and TEST (#964)
Jan 4, 2021
1c509ad
update gtest (#965)
JordanMaples Jan 4, 2021
25bb4bd
Revert "[cmake] Adding options for INSTALL and TEST (#964)" (#966)
JordanMaples Jan 4, 2021
e427b02
Reintroduce CMake changes that were reverted in #966 (#967)
JordanMaples Jan 5, 2021
3b3478e
Update README.md (#970)
Jan 7, 2021
d0052f6
Minor cmake nitpicks (#969)
Jan 8, 2021
d9fa328
Improve build script for standalone tests (#963)
mymedia2 Jan 8, 2021
84aeb59
Fixing cmake developer warning (#972)
Jan 19, 2021
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
50 changes: 50 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI_Android
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
Android:
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: Start emulator
run: |
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-24;default;x86_64'
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n xamarin_android_emulator -k 'system-images;android-24;default;x86_64' --force
$ANDROID_HOME/emulator/emulator -list-avds
echo "Starting emulator"
# Start emulator in background
nohup $ANDROID_HOME/emulator/emulator -avd xamarin_android_emulator -no-snapshot > /dev/null 2>&1 &
echo "Emulator starting"

- name: Configure
run: cmake -Werror=dev -DCMAKE_TOOLCHAIN_FILE=$ANDROID_HOME/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_PLATFORM=16 -DANDROID_ABI=x86_64 -DCMAKE_BUILD_TYPE=Debug ..

- name: Build
run: cmake --build . --parallel

- name: Wait for emulator ready
run: |
$ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 10; done; input keyevent 82'
$ANDROID_HOME/platform-tools/adb devices
$ANDROID_HOME/platform-tools/adb shell getprop ro.product.cpu.abi
echo "Emulator started"

- name: Deploy tests
run: |
adb push tests /data/local/tmp
adb shell find /data/local/tmp/tests -maxdepth 1 -exec chmod +x {} \\\;

- name: Test
run: adb shell find /data/local/tmp/tests -name "*_tests" -maxdepth 1 -exec {} \\\;
52 changes: 52 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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 \
-Werror=dev \
-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
Loading