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

Remove dependency binaries #63

Merged
merged 14 commits into from
Aug 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
67 changes: 64 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,74 @@ name: package-plugin-workflow
on: [push]

jobs:
android-sdk:
uses: ./.github/workflows/sdk.yml
with:
target: Android
runsOn: ubuntu-latest

ios-sdk:
uses: ./.github/workflows/sdk.yml
with:
target: IOS
runsOn: macos-latest

macos-sdk:
uses: ./.github/workflows/sdk.yml
with:
target: Mac
runsOn: macos-latest

linux-sdk:
uses: ./.github/workflows/sdk.yml
with:
target: Linux
runsOn: ubuntu-latest

windows-sdk:
uses: ./.github/workflows/sdk.yml
with:
target: Win64
runsOn: windows-latest

build:
name: Build
needs: [android-sdk, ios-sdk, macos-sdk, linux-sdk, windows-sdk]
name: Package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/download-artifact@v2
with:
name: Android-sdk
path: plugin-dev/Source/ThirdParty/Android

- uses: actions/download-artifact@v2
with:
name: Android-libraries
path: modules/sentry-java/sentry-android-ndk/build/intermediates/merged_native_libs/release/out/lib

- uses: actions/download-artifact@v2
with:
name: IOS-sdk
path: plugin-dev/Source/ThirdParty/IOS

- uses: actions/download-artifact@v2
with:
name: Mac-sdk
path: plugin-dev/Source/ThirdParty/Mac

- uses: actions/download-artifact@v2
with:
name: Linux-sdk
path: plugin-dev/Source/ThirdParty/Linux

- uses: actions/download-artifact@v2
with:
name: Win64-sdk
path: plugin-dev/Source/ThirdParty/Win64

- name: Prepare Sentry packages for release
shell: pwsh
run: ./scripts/packaging/pack.ps1
Expand All @@ -27,7 +88,7 @@ jobs:

package-validation:
needs: [build]
name: Validate package against snapshot
name: Check snapshot
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -50,7 +111,7 @@ jobs:
test-ue-packaging:
name: Test UE ${{ matrix.unreal }} packaging
runs-on: ubuntu-latest
needs: [build]
needs: [build, package-validation]

strategy:
fail-fast: false
Expand Down
70 changes: 70 additions & 0 deletions .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
on:
workflow_call:
inputs:
runsOn:
required: true
type: string
target:
required: true
type: string

jobs:
build:
runs-on: ${{ inputs.runsOn }}
timeout-minutes: 30
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2

- name: Select submodule
id: env
run: |
if [[ "${{ inputs.target }}" == "Android" ]]; then
submodule="modules/sentry-java"
elif [[ "${{ inputs.target }}" == "IOS" ]]; then
submodule="modules/sentry-cocoa"
else
submodule="modules/sentry-native"
fi
echo "::set-output name=submodule::$submodule"
echo "::set-output name=path::plugin-dev/Source/ThirdParty/${{ inputs.target }}"
echo "::set-output name=buildScript::scripts/build-$(echo '${{ inputs.target }}' | tr '[:upper:]' '[:lower:]').sh"

- name: Get submodule status
run: git submodule status --cached ${{ steps.env.outputs.submodule }} | tee submodule-status

- uses: actions/cache@v2
id: cache
with:
path: |
${{ steps.env.outputs.path }}
modules/sentry-java/sentry-android-ndk/build/intermediates/merged_native_libs/release/out/lib
key: sdk=${{ inputs.target }}-${{ hashFiles('submodule-status', 'scripts/build-*.sh', '.github/workflows/sdk.yml') }}

- name: Install Linux Dependencies
if: ${{ inputs.target == 'Linux' && steps.cache.outputs.cache-hit != 'true' }}
run: |
sudo apt-get update
sudo apt-get install zlib1g-dev libcurl4-openssl-dev libssl-dev

- name: Build
if: steps.cache.outputs.cache-hit != 'true'
run: |
git submodule update --init --recursive ${{ steps.env.outputs.submodule }}
mkdir -p '${{ steps.env.outputs.path }}'
${{ steps.env.outputs.buildScript }} '${{ steps.env.outputs.submodule }}' '${{ steps.env.outputs.path }}'

- uses: actions/upload-artifact@v2
with:
name: ${{ inputs.target }}-sdk
path: ${{ steps.env.outputs.path }}
retention-days: ${{ github.ref_name == 'main' && 14 || 1 }}

- uses: actions/upload-artifact@v2
if: ${{ inputs.target == 'Android' }}
with:
name: ${{ inputs.target }}-libraries
path: modules/sentry-java/sentry-android-ndk/build/intermediates/merged_native_libs/release/out/lib/*
retention-days: 1
30 changes: 4 additions & 26 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,11 @@ on:
- main

jobs:

native-linux:
uses: getsentry/github-workflows/.github/workflows/updater.yml@v1
with:
path: scripts/update-native-linux.sh
name: Native SDK (Linux)
runs-on: ubuntu-latest
secrets:
api_token: ${{ secrets.CI_DEPLOY_KEY }}

native-windows:
uses: getsentry/github-workflows/.github/workflows/updater.yml@v1
with:
path: scripts/update-native-windows.ps1
name: Native SDK (Windows)
runs-on: windows-latest
secrets:
api_token: ${{ secrets.CI_DEPLOY_KEY }}

native-mac:
native:
uses: getsentry/github-workflows/.github/workflows/updater.yml@v1
with:
path: scripts/update-native-mac.sh
name: Native SDK (Mac)
runs-on: macos-latest
path: modules/sentry-native
name: Native SDK
secrets:
api_token: ${{ secrets.CI_DEPLOY_KEY }}

Expand All @@ -43,15 +23,13 @@ jobs:
with:
path: scripts/update-java.sh
name: Java SDK (Android)
runs-on: ubuntu-latest
secrets:
api_token: ${{ secrets.CI_DEPLOY_KEY }}

cocoa:
uses: getsentry/github-workflows/.github/workflows/updater.yml@v1
with:
path: scripts/update-cocoa.sh
path: modules/sentry-cocoa
name: Cocoa SDK (iOS)
runs-on: macos-latest
secrets:
api_token: ${{ secrets.CI_DEPLOY_KEY }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ Intermediate/*
# Ignore package release
package-release/
sentry-unreal-*.zip

# Prebuilt libraries & artifacts are collected in CI
plugin-dev/Source/ThirdParty
Binary file not shown.
Binary file not shown.
Binary file removed plugin-dev/Source/ThirdParty/Android/sentry.jar
Binary file not shown.
Binary file not shown.

This file was deleted.

50 changes: 0 additions & 50 deletions plugin-dev/Source/ThirdParty/IOS/Sentry.framework/Headers/Sentry.h

This file was deleted.

Loading