Skip to content

try fix

try fix #62

Workflow file for this run

name: Deploy Prebuilt
on:
push:
branches:
- add-prebuilts
jobs:
windows-msvc:
runs-on: windows-2019
name: windows-msvc-qt-${{ matrix.qt_version }}-${{ matrix.build_type }}
strategy:
fail-fast: false
matrix:
qt_version: [5.15.2]
arch: [x64, x86]
build_type: [Release, Debug]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: CMake
uses: lukka/get-cmake@latest
- name: MSVC
uses: TheMrMilchmann/setup-msvc-dev@v2
with:
arch: ${{ matrix.arch }}
- name: Install Conan
id: conan
uses: turtlebrowser/get-conan@main
with:
version: 1.52.0
- name: Make Output Directory
run: |
mkdir -p ${{github.workspace}}/output/QArchive
mkdir -p ${{github.workspace}}/upload
- name: Build
run: |
set QT_VERSION=${{ matrix.qt_version }}
python3 scripts/write_conan.py
mkdir build
cd build
cmake -DQARCHIVE_QT_VERSION_MAJOR=5 \
-DQARCHIVE_CONAN_BUILD=ON \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
cmake --build . --config ${{ matrix.build_type }}
cmake --install . --prefix=${{ github.workspace }}/output/QArchive
cd ..
- name: Check Contents
working-directory: ${{github.workspace}}
run: ls -R ${{ github.workspace }}/output
- name: Zip Files
run: |
cd ${{ github.workspace }}/output/
7z a ${{ github.workspace }}/upload/windows-msvc-qt-${{ matrix.qt_version }}-${{ matrix.arch }}-${{ matrix.build_type }}.zip QArchive
- name: Upload Bundles
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/upload/windows-msvc-qt-${{ matrix.qt_version }}-${{ matrix.arch }}-${{ matrix.build_type }}.zip
tag: prebuilt
overwrite: true
prerelease: true
release_name: "Prebuilt Library"
body: "Prebuilt binaries for QArchive, to use with Qt prebuilds. (Work in Progress)"
windows-mingw:
runs-on: windows-2019
name: windows-${{matrix.platform}}-qt-${{matrix.qt_version}}
strategy:
matrix:
qt_version: [5.15.2]
platform: ['MINGW64']
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.platform}}
pacboy: >-
cc:p
ninja:p
pkgconf:p
cmake:p
install: >-
p7zip
wget
python
- name: Install Conan
id: conan
uses: turtlebrowser/get-conan@main
with:
version: 1.52.0
- name: Make Output Directory
run: |
mkdir -p ${{github.workspace}}/output/QArchive
- name: Build and Upload
run: |
QT_VERSION=${{ matrix.qt_version }} python scripts/write_conan.py
mkdir build
cd build
cmake -DQARCHIVE_QT_VERSION_MAJOR=5 \
-DQARCHIVE_CONAN_BUILD=ON \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
cmake --build . --config ${{ matrix.build_type }}
cmake --install . --prefix=${{ github.workspace }}/output/QArchive
cd ..
cd output
mkdir upload
7z a windows-${{matrix.platform}}-qt-${{matrix.qt_version}}.zip QArchive
cp windows-${{matrix.platform}}-qt-${{matrix.qt_version}}.zip upload/
wget "https://github.com/tcnksm/ghr/releases/download/v0.16.2/ghr_v0.16.2_windows_amd64.zip"
7z x ghr_v0.16.2_windows_amd64.zip
ghr_v0.16.2_windows_amd64/ghr.exe -u antony-jr \
-r QArchive \
-t ${{ secrets.GITHUB_TOKEN }} \
-replace \
-prerelease \
prebuilt upload/