Skip to content

Commit

Permalink
release #87
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Nov 30, 2024
1 parent 7f74cdb commit fadbe41
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,30 +106,30 @@ jobs:
- name: Configure CMake (Windows)
if: matrix.os == 'windows-latest'
run: |
cmake -B "${{ github.workspace }}\\build" ^
cmake -B "%GITHUB_WORKSPACE%\\build" ^
-DCMAKE_BUILD_TYPE=Release ^
-G Ninja ^
-DCMAKE_PREFIX_PATH=C:\\Qt\\6.5.3\\mingw_64 ^
-S "${{ github.workspace }}"
-S "%GITHUB_WORKSPACE%"
shell: cmd
- name: Build Notepad-- (Windows)
if: matrix.os == 'windows-latest'
run: cmake --build "${{ github.workspace }}\\build" --config Release
run: cmake --build "%GITHUB_WORKSPACE%\\build" --config Release
shell: cmd
- name: Package Notepad-- (Windows)
if: matrix.os == 'windows-latest'
run: |
BUILD_DIR="${{ github.workspace }}\\build"
OUTPUT_DIR="${{ github.workspace }}\\output"
mkdir $OUTPUT_DIR
Compress-Archive -Path "$BUILD_DIR\\*" -DestinationPath "$OUTPUT_DIR\\Notepad--_windows.zip"
set BUILD_DIR=%GITHUB_WORKSPACE%\\build
set OUTPUT_DIR=%GITHUB_WORKSPACE%\\output
mkdir %OUTPUT_DIR%
powershell Compress-Archive -Path "%BUILD_DIR%\\*" -DestinationPath "%OUTPUT_DIR%\\Notepad--_windows.zip"
shell: cmd
- name: Upload Windows Artifact
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v3
with:
name: Notepad--_windows
path: "${{ github.workspace }}\\output\\Notepad--_windows.zip"
path: "%GITHUB_WORKSPACE%\\output\\Notepad--_windows.zip"

release:
runs-on: ubuntu-latest
Expand All @@ -143,7 +143,6 @@ jobs:
run: |
TIMESTAMP=$(date +%Y%m%d%H%M%S)
echo "RELEASE_TAG=release-$TIMESTAMP" >> $GITHUB_ENV
echo "::set-output name=tag_name::release-$TIMESTAMP"
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
Expand Down Expand Up @@ -175,6 +174,6 @@ jobs:
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: "${{ github.workspace }}/output/Notepad--_windows.zip"
asset_path: "%GITHUB_WORKSPACE%\\output\\Notepad--_windows.zip"
asset_name: Notepad--_windows.zip
asset_content_type: application/zip

0 comments on commit fadbe41

Please sign in to comment.