Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
brustolin committed Feb 23, 2024
1 parent 681437a commit 21daf1e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,11 @@ jobs:
- uses: actions/checkout@v4
- run: ./scripts/ci-select-xcode.sh 15.2
- run: make build-xcframework
- run: ./scripts/update-package-sha.sh "${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" ${{ github.workspace }}/Carthage/Sentry.xcframework.zip
shell: sh

- name: Update Package.swift
run: ./scripts/update-package-sha.sh "${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" ${{ github.workspace }}/Carthage/Sentry.xcframework.zip


- name: Archiving XCFramework.zip
uses: actions/upload-artifact@v4
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build
on:
push:
branches:
- test/update-package

# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build-xcframework:
name: Build XCFramework
# The macos-13 uses an Intel processor and doesn't compile the XCFramework for visionOS.
# The large image compiles on arm64 and successfully creates the XCFramework for visionOS.
runs-on: macos-13-xlarge
steps:
- uses: actions/checkout@v4
- run: ./scripts/ci-select-xcode.sh 15.2
- run: make build-xcframework
shell: sh

- name: Update Package.swift
run: ./scripts/update-package-sha.sh "${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" ${{ github.workspace }}/Carthage/Sentry.xcframework.zip


- name: Archiving XCFramework.zip
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
if-no-files-found: error
path: |
${{ github.workspace }}/Carthage/*.zip
- name: Archive build log if failed
uses: actions/upload-artifact@v4
if: ${{ failure() || cancelled() }}
with:
name: raw-build-output-build-xcframework
path: |
build-xcframework.log

0 comments on commit 21daf1e

Please sign in to comment.