Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nhachicha committed Feb 20, 2024
1 parent f389090 commit 0442c3f
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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/actions-setup-cmake@v1.13
with:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 0442c3f

Please sign in to comment.