Skip to content

Commit

Permalink
Add multiplatform CI Builds (#1)
Browse files Browse the repository at this point in the history
* ci: use default shell

* ci: artifact zipping, windows changes

* ci: use right folder for artifacts

* ci: fix windows deploy

* ci: windows: use release folder

* ci: add zip for windows

* ci: adjust release bundles
  • Loading branch information
vgmoose authored Jul 23, 2023
1 parent d1eb3ec commit 28fd12e
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- ci-release
pull_request:
branches:
- main
Expand All @@ -19,6 +20,25 @@ 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 && make
run: cd CaptiveDNS && qmake && (make || nmake || (rm /usr/bin/link && nmake))
- name: Bundle for ${{ matrix.os }}
shell: bash
run: |
if [[ "${{ matrix.os }}" == "macos" ]]; then
zip -r ./CaptiveDNS-${{ matrix.os }}.zip ./CaptiveDNS/CaptiveDNS.app
elif [[ "${{ matrix.os }}" == "windows" ]]; then
mkdir -p ./CaptiveDNS/CaptiveDNS
cp ./CaptiveDNS/release/CaptiveDNS.exe ./CaptiveDNS/CaptiveDNS
windeployqt ./CaptiveDNS/CaptiveDNS/CaptiveDNS.exe
choco install -y zip
cd ./CaptiveDNS/CaptiveDNS/
zip -r ../../CaptiveDNS-${{ matrix.os }}.zip .
else
zip -r ./CaptiveDNS-${{ matrix.os }}.zip ./CaptiveDNS/CaptiveDNS
fi
- uses: actions/upload-artifact@v3
with:
name: CaptiveDNS-${{ matrix.os }}
path: ./CaptiveDNS-${{ matrix.os }}.zip

0 comments on commit 28fd12e

Please sign in to comment.