-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -352,6 +352,23 @@ jobs: | |
key: 'metadata-package' | ||
max-size: '2.0G' | ||
|
||
# Manually install SWIG 4.2. as only 4.0.2 is pre-installed | ||
# 4.2.0 is not available in apt-get, so use brew instead | ||
# We need to use the formulae directly from GitHub to pin the version as Homebrew does not have | ||
# all versions available. | ||
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#ubuntu-22041-lts | ||
# It seems to be required to manually add brew dirs to the PATH. This does not happen automatically. | ||
- name: Install SWIG | ||
run: | | ||
test -d ~/.linuxbrew && eval "$(~/.linuxbrew/bin/brew shellenv)" | ||
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | ||
test -r ~/.bash_profile && echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> ~/.bash_profile | ||
echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> ~/.profile | ||
echo "/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH | ||
echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH | ||
cd ~ | ||
curl -L ${{ vars.VERSION_SWIG}} > swig.rb && HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=true brew install swig.rb | ||
- name: Prepend ccache executables to the PATH | ||
run: echo "/usr/lib/ccache:/usr/local/opt/ccache/libexec" >> $GITHUB_PATH | ||
|
||
|
@@ -386,6 +403,10 @@ jobs: | |
path: ./packages/build/m2-buildrepo/**/* | ||
retention-days: 1 | ||
|
||
- name: Check restored SWIG file | ||
if: always() | ||
run: cat ./packages/jni-swig-stub/build/generated/sources/java/io/realm/kotlin/internal/interop/realmc.java | ||
|
||
|
||
# This task is also responsible for creating the Gradle and Compiler Plugin as well as | ||
# all Kotlin Multiplatform Metadata | ||
|
@@ -536,9 +557,6 @@ jobs: | |
cd ~ | ||
curl -L ${{ vars.VERSION_SWIG}} > swig.rb && HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=true brew install swig.rb | ||
- name: Install JSON parser | ||
run: brew install jq | ||
|
||
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
with: | ||
|
@@ -630,6 +648,11 @@ jobs: | |
./packages/test-sync/build/outputs/apk/androidTest/debug/test-sync-debug-androidTest.apk | ||
./packages/test-sync/build/outputs/apk/debug/test-sync-debug.apk | ||
- name: Check restored SWIG file | ||
if: always() | ||
run: cat ./packages/jni-swig-stub/build/generated/sources/java/io/realm/kotlin/internal/interop/realmc.java | ||
|
||
|
||
|
||
# TODO: ccache is not being used by this build for some reason | ||
build-macos-x64-packages: | ||
|