Skip to content

Commit

Permalink
release #10
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Nov 28, 2024
1 parent 6710cd9 commit 1e661bf
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,18 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Install dependencies (Ubuntu and macOS)
if: matrix.os != 'windows-latest'
- name: Install dependencies on Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
if [[ ${{ matrix.os }} == 'ubuntu-latest' ]]; then
sudo apt-get update
sudo apt-get install -y qt6-base-dev ninja-build cmake
elif [[ ${{ matrix.os }} == 'macos-latest' ]]; then
brew install qt ninja cmake
fi
sudo apt-get update
sudo apt-get install -y qt6-base-dev ninja-build cmake
- name: Install dependencies (Windows)
- name: Install dependencies on macOS
if: matrix.os == 'macos-latest'
run: |
brew install qt ninja cmake
- name: Install dependencies on Windows
if: matrix.os == 'windows-latest'
run: |
choco install qt --version=6.5.3 -y
Expand All @@ -55,7 +56,8 @@ jobs:
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}

- name: Build
run: cmake --build "${{ github.workspace }}/build" --parallel
run: |
cmake --build "${{ github.workspace }}/build" --parallel
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}

- name: Package application
Expand All @@ -65,7 +67,7 @@ jobs:
elif [[ ${{ matrix.os }} == 'macos-latest' ]]; then
hdiutil create -volname Notepad-- -srcfolder "${{ github.workspace }}/build" -ov -format UDZO Notepad--.dmg
elif [[ ${{ matrix.os }} == 'windows-latest' ]]; then
powershell Compress-Archive -Path "${{ github.workspace }}\build\*" -DestinationPath "Notepad--.zip"
Compress-Archive -Path "${{ github.workspace }}\build\*" -DestinationPath "Notepad--.zip"
fi
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}

Expand Down Expand Up @@ -104,7 +106,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifacts/
asset_name: ${{ matrix.os }}-Notepad--.tar.gz
asset_name: ${{ matrix.os }}-Notepad--.dmg
asset_name: ${{ matrix.os }}-Notepad--.zip
asset_name: Notepad---${{ matrix.os }}.tar.gz
asset_name: Notepad---${{ matrix.os }}.dmg
asset_name: Notepad---${{ matrix.os }}.zip
content_type: application/octet-stream

0 comments on commit 1e661bf

Please sign in to comment.