Skip to content

Commit

Permalink
Fix workflow files (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
maroontress-tomohisa authored Sep 11, 2024
1 parent 6c492f0 commit c1294d6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 27 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
os: [windows-latest, ubuntu-latest, macos-13]
abi: [x86_64, x86, arm64-v8a, armeabi-v7a]
runs-on: ${{matrix.os}}

Expand Down Expand Up @@ -50,16 +50,16 @@ jobs:
- name: Install ${{matrix.abi}}
run: cmake --install build/${{matrix.abi}}
- name: Archive artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: android-${{matrix.os}}
name: android-${{matrix.os}}-${{matrix.abi}}
path: ~/android/

test:
timeout-minutes: 30
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-13]
abi: [x86_64]
runs-on: ${{matrix.os}}

Expand All @@ -75,7 +75,7 @@ jobs:
| sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
lfs: true
Expand All @@ -84,7 +84,7 @@ jobs:
- name: Build ${{matrix.abi}}
run: cmake --build build/${{matrix.abi}} -v
- name: AVD cache
uses: actions/cache@v3
uses: actions/cache@v4
id: avd-cache
with:
path: |
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
disable-animations: true
script: sh android.sh build test ${{matrix.abi}}
- name: Archive artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: android-testsuite-${{matrix.os}}-${{matrix.abi}}
path: build/${{matrix.abi}}/testsuite/log.txt
4 changes: 2 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
lfs: true
Expand All @@ -41,7 +41,7 @@ jobs:
runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
lfs: true
Expand Down
37 changes: 20 additions & 17 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
steps:
- name: get-cmake
uses: lukka/[email protected]
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
lfs: true
- name: Build ${{matrix.abi}}
run: sh ios.sh build build-non-fat ${{matrix.sdk}} ${{matrix.abi}} $BUILD_TYPE
- name: Archive artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build
name: build-${{matrix.sdk}}-${{matrix.abi}}
path: build
if-no-files-found: error
install_and_test:
Expand All @@ -43,29 +43,32 @@ jobs:
steps:
- name: get-cmake
uses: lukka/[email protected]
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
lfs: true
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: build
merge-multiple: true
- name: Run simulator
run: |
runtime=$(xcrun simctl list runtimes iOS -j | jq '.runtimes[].identifier' | tail -1)
udid=$(xcrun simctl list devices iPhone available -j | jq '.devices['$runtime']|.[].udid' | tail -1)
xcrun simctl bootstatus $(eval echo $udid) -b
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: ctest --test-dir build/iphonesimulator-x86_64 -C $BUILD_TYPE
run: ctest --test-dir build/iphonesimulator-arm64 -C $BUILD_TYPE
- name: Archive artifacts (testsuite)
if: ${{failure()}}
uses: actions/upload-artifact@v3
with:
name: testsuite
path: ${{github.workspace}}/build/iphonesimulator-x86_64/
path: ${{github.workspace}}/build/iphonesimulator-arm64/
- name: Install fat files and XCFrameworks
run: sh ios.sh build install "$HOME/ios" --config $BUILD_TYPE
- name: Archive artifacts (xcframework)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: xcframework
path: ~/ios
Expand All @@ -75,7 +78,7 @@ jobs:
timeout-minutes: 30
if: ${{false}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
lfs: true
Expand All @@ -86,14 +89,14 @@ jobs:
- name: Install
run: sh ios.sh build install $HOME/ios --config $BUILD_TYPE
- name: Archive artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ios
path: ~/ios/
- name: Run simulator
run: |
runtime=$(xcrun simctl list runtimes iOS -j | jq '.runtimes[].identifier' | tail -1)
udid=$(xcrun simctl list devices iPhone available -j | jq '.devices['$runtime']|.[].udid' | tail -1)
xcrun simctl bootstatus $(eval echo $udid) -b
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: ctest --test-dir build/iphonesimulator-x86_64 -C $BUILD_TYPE
run: ctest --test-dir build/iphonesimulator-arm64 -C $BUILD_TYPE
2 changes: 1 addition & 1 deletion testsuite/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ target_link_libraries(testsuite mimicssl-md5)

include(GoogleTest)
gtest_discover_tests(testsuite
DISCOVERY_TIMEOUT 50
DISCOVERY_TIMEOUT 500
DISCOVERY_MODE PRE_TEST)

0 comments on commit c1294d6

Please sign in to comment.