Skip to content

Commit

Permalink
make sure arch gets added to packages
Browse files Browse the repository at this point in the history
  • Loading branch information
DDRBoxman committed Mar 26, 2021
1 parent dc6f482 commit f658cb7
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/build_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ jobs:
shell: bash
id: get_date
run: echo "CURRENT_DATE=$(date +"%Y-%m-%d")" >> $GITHUB_ENV
- name: Get Current Arch
shell: bash
id: get_arch
run: echo "CURRENT_ARCH=$(uname -m)" >> $GITHUB_ENV
- name: Build environment setup
shell: bash
run: |
Expand Down Expand Up @@ -590,16 +594,16 @@ jobs:
shell: bash
working-directory: ${{ github.workspace }}/CI_BUILD
run: |
tar -czf macos-deps-${{ env.CURRENT_DATE }}.tar.gz obsdeps
tar -czf macos-deps-${{ env.CURRENT_ARCH }}-${{ env.CURRENT_DATE }}.tar.gz obsdeps
if [ ! -d "${{ github.workspace }}/macos" ]; then
mkdir ${{ github.workspace }}/macos
fi
mv ./macos-deps-${{ env.CURRENT_DATE }}.tar.gz ${{ github.workspace }}/macos
mv ./macos-deps-${{ env.CURRENT_ARCH }}-${{ env.CURRENT_DATE }}.tar.gz ${{ github.workspace }}/macos
- name: PublishBuildArtifacts
if: success() && github.event_name != 'pull_request'
uses: actions/[email protected]
with:
name: 'macos-deps-${{ env.CURRENT_DATE }}'
name: 'macos-deps-${{ env.CURRENT_ARCH }}-${{ env.CURRENT_DATE }}'
path: ./macos/*.tar.gz
macos64-qt:
name: Build macOS Qt dependency (64bit)
Expand Down Expand Up @@ -628,6 +632,10 @@ jobs:
shell: bash
id: get_date
run: echo "CURRENT_DATE=$(date +"%Y-%m-%d")" >> $GITHUB_ENV
- name: Get Current Arch
shell: bash
id: get_arch
run: echo "CURRENT_ARCH=$(uname -m)" >> $GITHUB_ENV
- name: Build environment setup
shell: bash
run: |
Expand Down Expand Up @@ -707,16 +715,16 @@ jobs:
shell: bash
working-directory: ${{ github.workspace }}/CI_BUILD/obsdeps
run: |
tar -czf macos-qt-${{ env.MAC_QT_VERSION }}-${{ env.CURRENT_DATE }}.tar.gz obsdeps
tar -czf macos-qt-${{ env.MAC_QT_VERSION }}-${{ env.CURRENT_ARCH }}-${{ env.CURRENT_DATE }}.tar.gz obsdeps
if [ ! -d "${{ github.workspace }}/macos" ]; then
mkdir ${{ github.workspace }}/macos
fi
mv macos-qt-${{ env.MAC_QT_VERSION }}-${{ env.CURRENT_DATE }}.tar.gz ${{ github.workspace }}/macos
mv macos-qt-${{ env.MAC_QT_VERSION }}-${{ env.CURRENT_ARCH }}-${{ env.CURRENT_DATE }}.tar.gz ${{ github.workspace }}/macos
- name: PublishBuildArtifacts
if: success() && github.event_name != 'pull_request'
uses: actions/[email protected]
with:
name: 'macos-qt-${{ env.MAC_QT_VERSION }}-${{ env.CURRENT_DATE }}'
name: 'macos-qt-${{ env.MAC_QT_VERSION }}-${{ env.CURRENT_ARCH }}-${{ env.CURRENT_DATE }}'
path: ./macos/*.tar.gz
make-release:
name: 'Create and upload release'
Expand Down Expand Up @@ -753,7 +761,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/macos-deps-${{ env.CURRENT_DATE }}/macos-deps-${{ env.CURRENT_DATE }}.tar.gz
asset_path: ${{ github.workspace }}/macos-deps-${{ env.CURRENT_ARCH }}-${{ env.CURRENT_DATE }}/macos-deps-${{ env.CURRENT_ARCH }}-${{ env.CURRENT_DATE }}.tar.gz
asset_name: macos-deps-${{ env.CURRENT_ARCH }}-${{ steps.get_version.outputs.VERSION }}.tar.gz
asset_content_type: application/octet-stream
- name: 'Upload macOS Qt dependency to release'
Expand All @@ -762,6 +770,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/macos-qt-${{ env.MAC_QT_VERSION }}-${{ env.CURRENT_DATE }}/macos-qt-${{ env.MAC_QT_VERSION }}-${{ env.CURRENT_DATE }}.tar.gz
asset_path: ${{ github.workspace }}/macos-qt-${{ env.MAC_QT_VERSION }}-${{ env.CURRENT_ARCH }}-${{ env.CURRENT_DATE }}/macos-qt-${{ env.MAC_QT_VERSION }}-${{ env.CURRENT_ARCH }}-${{ env.CURRENT_DATE }}.tar.gz
asset_name: macos-qt-${{ env.MAC_QT_VERSION }}-${{ env.CURRENT_ARCH }}-${{ steps.get_version.outputs.VERSION }}.tar.gz
asset_content_type: application/octet-stream

0 comments on commit f658cb7

Please sign in to comment.