-
Notifications
You must be signed in to change notification settings - Fork 25
67 lines (58 loc) · 1.87 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Deploy Prebuilt
on:
push:
branches:
- add-prebuilts
env:
BUILD_TYPE: Release
jobs:
windows:
runs-on: windows-latest
name: MSYS2-${{matrix.platform}}
strategy:
matrix:
platform: ['MINGW64']
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.platform}}
pacboy: >-
cc:p
libarchive:p
meson:p
ninja:p
pkgconf:p
qt5-base:p
install: >-
p7zip
wget
- name: Make Output Directory
run: |
mkdir -p ${{github.workspace}}/output/QArchive
- name: Compile and Test
run: |
meson setup "${{github.workspace}}/build" --prefix "${{github.workspace}}/output/QArchive" -Dauto_features=disabled -Dwarning_level=3 -Dcpp_std=c++20
meson compile -C "${{github.workspace}}/build" --verbose
meson test -C "${{github.workspace}}/build" --verbose
meson install -C "${{github.workspace}}/build"
- name: Check Contents
working-directory: ${{github.workspace}}
run: ls -R ${{ github.workspace }}/output
- name: Zip Files
run: |
cd ${{ github.workspace }}/output/
7z a windows-Qt-5.15.11-${{ matrix.platform }}.zip QArchive
mkdir upload
cp windows-Qt-5.15.11-${{ matrix.platform }} upload/
- name: Upload Bundles
working-directory: ${{ github.workspace }}/output
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
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 -replace -delete -draft -prerelease prebuilt upload/