Skip to content

Commit

Permalink
CI: Update workflow to package dSYMs
Browse files Browse the repository at this point in the history
  • Loading branch information
PatTheMav committed May 5, 2023
1 parent 4e20722 commit dc40710
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,13 @@ jobs:
target='${{ matrix.target }}'
artifact_name="ffmpeg-${target}-${{ github.sha }}"
file_name="${target%%-*}-ffmpeg-$(date +"%Y-%m-%d")-${target##*-}.tar.xz"
dsym_artifact_name="ffmpeg-${target}-dSYMs-${{ github.sha }}"
dsym_file_name="${target%%-*}-ffmpeg-$(date +"%Y-%m-%d")-${target##*-}-dSYMs.tar.xz"
echo "artifactName=${artifact_name}" >> $GITHUB_OUTPUT
echo "artifactFileName=${file_name}" >> $GITHUB_OUTPUT
echo "dsymArtifactName=${dsym_artifact_name}" >> $GITHUB_OUTPUT
echo "dsymArtifactFileName=${dsym_file_name}" >> $GITHUB_OUTPUT
echo "ccacheDate=$(date +"%Y-%m-%d")" >> $GITHUB_OUTPUT
- name: Restore Compilation Cache
Expand Down Expand Up @@ -121,6 +125,13 @@ jobs:
name: ${{ steps.setup.outputs.artifactName }}
path: ${{ github.workspace }}/${{ matrix.target }}/${{ steps.setup.outputs.artifactFileName }}

- name: Publish Debug Symbol Artifacts
if: ${{ startsWith(matrix.os, 'macos') && success() && (github.event_name != 'pull_request' || steps.seekingTesters.outputs.found == 'true') }}
uses: actions/upload-artifact@v3
with:
name: ${{ steps.setup.outputs.dsymArtifactName }}
path: ${{ github.workspace }}/${{ matrix.target }}/${{ steps.setup.outputs.dsymArtifactFileName }}

ffmpeg-package-universal:
name: 'Build FFmpeg (Universal)'
runs-on: macos-12
Expand All @@ -147,6 +158,14 @@ jobs:
x86_64: 'ffmpeg-macos-x86_64-${{ github.sha }}'
outputName: 'ffmpeg-macos-universal-${{ github.sha }}'

- name: Create universal dSYM package
if: ${{ success() && (github.event_name != 'pull_request' || steps.seekingTesters.outputs.found == 'true') }}
uses: ./.github/actions/create-universal
with:
arm64: 'ffmpeg-macos-arm64-dSYMs-${{ github.sha }}'
x86_64: 'ffmpeg-macos-x86_64-dSYMs-${{ github.sha }}'
outputName: 'ffmpeg-macos-universal-dSYMs-${{ github.sha }}'

macos-build:
name: 'Build macOS Dependencies'
runs-on: macos-12
Expand Down Expand Up @@ -184,9 +203,13 @@ jobs:
target='${{ matrix.target }}'
artifact_name="deps-${target}-${{ github.sha }}"
file_name="${target%%-*}-deps-$(date +"%Y-%m-%d")-${target##*-}.tar.xz"
dsym_artifact_name="deps-${target}-dSYMs-${{ github.sha }}"
dsym_file_name="${target%%-*}-deps-$(date +"%Y-%m-%d")-${target##*-}-dSYMs.tar.xz"
echo "artifactName=${artifact_name}" >> $GITHUB_OUTPUT
echo "artifactFileName=${file_name}" >> $GITHUB_OUTPUT
echo "dsymArtifactName=${dsym_artifact_name}" >> $GITHUB_OUTPUT
echo "dsymArtifactFileName=${dsym_file_name}" >> $GITHUB_OUTPUT
echo "ccacheDate=$(date +"%Y-%m-%d")" >> $GITHUB_OUTPUT
- name: Restore Compilation Cache
Expand Down Expand Up @@ -223,6 +246,13 @@ jobs:
name: ${{ steps.setup.outputs.artifactName }}
path: ${{ github.workspace }}/${{ matrix.target }}/${{ steps.setup.outputs.artifactFileName }}

- name: Publish Debug Symbol Artifacts
if: ${{ success() && (github.event_name != 'pull_request' || steps.seekingTesters.outputs.found == 'true') }}
uses: actions/upload-artifact@v3
with:
name: ${{ steps.setup.outputs.dsymArtifactName }}
path: ${{ github.workspace }}/${{ matrix.target }}/${{ steps.setup.outputs.dsymArtifactFileName }}

macos-package-universal:
name: 'Build macOS Dependencies (Universal)'
runs-on: macos-12
Expand All @@ -249,6 +279,14 @@ jobs:
x86_64: 'deps-macos-x86_64-${{ github.sha }}'
outputName: 'deps-macos-universal-${{ github.sha }}'

- name: Create universal dSYM package
if: ${{ success() && (github.event_name != 'pull_request' || steps.seekingTesters.outputs.found == 'true') }}
uses: ./.github/actions/create-universal
with:
arm64: 'deps-macos-arm64-dSYMs-${{ github.sha }}'
x86_64: 'deps-macos-x86_64-dSYMs-${{ github.sha }}'
outputName: 'deps-macos-universal-dSYMs-${{ github.sha }}'

macos-qt5-build:
name: 'Build macOS Qt5'
runs-on: macos-12
Expand Down Expand Up @@ -375,9 +413,13 @@ jobs:
target='macos-universal'
artifact_name="qt6-${target}-${{ github.sha }}"
file_name="${target%%-*}-deps-qt6-$(date +"%Y-%m-%d")-${target##*-}.tar.xz"
dsym_artifact_name="qt6-${target}-dSYMs-${{ github.sha }}"
dsym_file_name="${target%%-*}-deps-qt6-$(date +"%Y-%m-%d")-${target##*-}-dSYMs.tar.xz"
echo "artifactName=${artifact_name}" >> $GITHUB_OUTPUT
echo "artifactFileName=${file_name}" >> $GITHUB_OUTPUT
echo "dsymArtifactName=${dsym_artifact_name}" >> $GITHUB_OUTPUT
echo "dsymArtifactFileName=${dsym_file_name}" >> $GITHUB_OUTPUT
echo "ccacheDate=$(date +"%Y-%m-%d")" >> $GITHUB_OUTPUT
- name: Restore Compilation Cache
Expand Down Expand Up @@ -414,6 +456,13 @@ jobs:
name: ${{ steps.setup.outputs.artifactName }}
path: ${{ github.workspace }}/macos-universal/${{ steps.setup.outputs.artifactFileName }}

- name: Publish Debug Symbol Artifacts
if: ${{ success() && (github.event_name != 'pull_request' || steps.seekingTesters.outputs.found == 'true') }}
uses: actions/upload-artifact@v3
with:
name: ${{ steps.setup.outputs.dsymArtifactName }}
path: ${{ github.workspace }}/macos-universal/${{ steps.setup.outputs.dsymArtifactFileName }}

macos-qt6-package:
name: 'Build macOS Qt6 (${{ matrix.target }})'
runs-on: macos-12
Expand Down Expand Up @@ -449,6 +498,14 @@ jobs:
target: '${{ matrix.target }}'
outputName: 'qt6-${{ matrix.target }}-${{ github.sha }}'

- name: Create single architecture dSYM package
if: ${{ success() && (github.event_name != 'pull_request' || steps.seekingTesters.outputs.found == 'true') }}
uses: ./.github/actions/create-single-arch
with:
base: 'qt6-macos-universal-dSYMs-${{ github.sha }}'
target: '${{ matrix.target }}'
outputName: 'qt6-${{ matrix.target }}-dSYMs-${{ github.sha }}'

windows-build:
name: 'Build Windows Dependencies'
runs-on: windows-2022
Expand Down

0 comments on commit dc40710

Please sign in to comment.