Skip to content

Commit

Permalink
Less noise in MacOS artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Sep 13, 2024
1 parent c98daea commit 2fe4de0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/BuildPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
if: ${{ success() }}
with:
name: DLTViewer-${{ matrix.macos }}-${{ matrix.abi }}
path: build/dist/DLTViewer*.tgz
path: build/install/DLTViewer.*


buildLinux:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Build project
run: scripts/darwin/build.sh
- name: Archive artifact
run: zip DLT-macOS-${{ matrix.abi }}.zip -r build/dist
run: zip DLT-macOS-${{ matrix.abi }}.zip -r build/install -i 'DLTViewer*'
- name: Upload DLT artifact
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -118,12 +118,14 @@ jobs:
uses: actions/download-artifact@v4
with:
name: DLT-Linux
- name: Download DLT macOS artifacts
- name: Download DLT macOS artifacts arm64
uses: actions/download-artifact@v4
with:
name: |
DLT-Mac-x86
DLT-Mac-arm64
name: DLT-Mac-arm64
- name: Download DLT macOS artifacts x86
uses: actions/download-artifact@v4
with:
name: DLT-Mac-x86
- name: Download DLT Windows parser artifacts
uses: actions/download-artifact@v4
with:
Expand Down
11 changes: 8 additions & 3 deletions scripts/darwin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ cd "${BUILD_DIR}"
FULL_VERSION=$(cat "${BUILD_DIR}/full_version.txt")
echo "FULL_VERSION=${FULL_VERSION}"

mkdir -p dist
cp ../scripts/darwin/install.md dist
tar -czvf "dist/DLTViewer-${FULL_VERSION}.tgz" -C ${INSTALL_DIR} .
echo "Artifacts are here"
ls ${INSTALL_DIR}
find . -name "DLTViewer*.dmg"
find . -name "DLTViewer.*"
#
#mkdir -p dist
#cp ../scripts/darwin/install.md dist
#tar -czvf "dist/DLTViewer-${FULL_VERSION}.tgz" -C "${INSTALL_DIR}" .

0 comments on commit 2fe4de0

Please sign in to comment.