From 6c71fd6c53eacdd4b617ecec5828373a439662cf Mon Sep 17 00:00:00 2001 From: vgmoose Date: Sun, 23 Jul 2023 00:59:33 -0400 Subject: [PATCH] ci: artifact zipping, windows changes --- .github/workflows/main.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fcd1a90..e626bb6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 \ No newline at end of file + name: CaptiveDNS-${{ matrix.os }} + path: ./CaptiveDNS-${{ matrix.os }}.zip \ No newline at end of file