Skip to content

ci: use right folder for artifacts #14

ci: use right folder for artifacts

ci: use right folder for artifacts #14

Workflow file for this run

name: Build CaptiveDNS
on:
push:
branches:
- main
- ci-release
pull_request:
branches:
- main
jobs:
all:
strategy:
matrix:
os: [ubuntu, windows, macos]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@main
- name: Install Qt
uses: jurplel/install-qt-action@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: Build for ${{ matrix.os }}
shell: bash
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/CaptiveDNS.dmg
elif [[ "${{ matrix.os }}" == "windows" ]]; then
windeployqt CaptiveDNS.exe
zip -r ./CaptiveDNS-${{ matrix.os }}.zip ./CaptiveDNS/CaptiveDNS.exe
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