Skip to content

Commit

Permalink
release #90
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Nov 30, 2024
1 parent c9a44d4 commit 0c9f33b
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ jobs:
OUTPUT_DIR="${{ github.workspace }}/output"
mkdir -p $OUTPUT_DIR
tar -czvf $OUTPUT_DIR/Notepad--_ubuntu.tar.gz -C $BUILD_DIR .
echo "Packaging completed. Listing output directory:"
echo "Artifact packaged. Listing contents of $OUTPUT_DIR:"
ls -al $OUTPUT_DIR
- name: Upload Ubuntu Artifact
- name: Verify Artifact (Ubuntu)
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v3
with:
name: Notepad--_ubuntu
path: "${{ github.workspace }}/output/Notepad--_ubuntu.tar.gz"
run: |
if [ ! -f "${{ github.workspace }}/output/Notepad--_ubuntu.tar.gz" ]; then
echo "Error: Artifact Notepad--_ubuntu.tar.gz not found!"
exit 1
fi
# macOS Section
- name: Install dependencies (macOS)
Expand All @@ -82,14 +83,15 @@ jobs:
OUTPUT_DIR="${{ github.workspace }}/output"
mkdir -p $OUTPUT_DIR
zip -r $OUTPUT_DIR/Notepad--_macos.zip $BUILD_DIR
echo "Packaging completed. Listing output directory:"
echo "Artifact packaged. Listing contents of $OUTPUT_DIR:"
ls -al $OUTPUT_DIR
- name: Upload macOS Artifact
- name: Verify Artifact (macOS)
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v3
with:
name: Notepad--_macos
path: "${{ github.workspace }}/output/Notepad--_macos.zip"
run: |
if [ ! -f "${{ github.workspace }}/output/Notepad--_macos.zip" ]; then
echo "Error: Artifact Notepad--_macos.zip not found!"
exit 1
fi
# Windows Section
- name: Install dependencies (Windows)
Expand Down Expand Up @@ -127,15 +129,17 @@ jobs:
$OUTPUT_DIR="${{ github.workspace }}\\output"
mkdir $OUTPUT_DIR
Compress-Archive -Path "$BUILD_DIR\\*" -DestinationPath "$OUTPUT_DIR\\Notepad--_windows.zip"
echo "Packaging completed. Listing output directory:"
Get-ChildItem -Path $OUTPUT_DIR
echo "Artifact packaged. Listing contents of $OUTPUT_DIR:"
dir $OUTPUT_DIR
shell: pwsh
- name: Upload Windows Artifact
- name: Verify Artifact (Windows)
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v3
with:
name: Notepad--_windows
path: "${{ github.workspace }}\\output\\Notepad--_windows.zip"
run: |
if (!(Test-Path -Path "${{ github.workspace }}\\output\\Notepad--_windows.zip")) {
Write-Error "Error: Artifact Notepad--_windows.zip not found!"
exit 1
}
shell: pwsh

release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0c9f33b

Please sign in to comment.