Skip to content

Commit

Permalink
ci: artifact zipping, windows changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vgmoose committed Jul 23, 2023
1 parent 393324c commit 6c71fd6
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,22 @@ jobs:
- name: Install Qt
uses: jurplel/install-qt-action@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: Build ${{ matrix.platform }}
- name: Build for ${{ matrix.os }}
shell: bash
run: cd CaptiveDNS && qmake
run: cd CaptiveDNS && qmake && (make || nmake)
- name: Bundle for ${{ matrix.os }}
shell: bash
run: |
if [[ "${{ matrix.os }}" == "macos" ]]; then
macdeployqt CaptiveDNS.app -dmg
zip -r ./CaptiveDNS-${{ matrix.os }}.zip CaptiveDNS.dmg
elif [[ "${{ matrix.os }}" == "windows" ]]; then
windeployqt CaptiveDNS.exe
zip -r ./CaptiveDNS-${{ matrix.os }}.zip CaptiveDNS.exe
else
zip -r ./CaptiveDNS-${{ matrix.os }}.zip CaptiveDNS
fi
- uses: actions/upload-artifact@v3
with:
name: Makefile.Release
path: ./CaptiveDNS/Makefile.Release
name: CaptiveDNS-${{ matrix.os }}
path: ./CaptiveDNS-${{ matrix.os }}.zip

0 comments on commit 6c71fd6

Please sign in to comment.