-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1 KB
/
test9.yml
File metadata and controls
39 lines (32 loc) · 1 KB
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
name: 2. Windows mxe C/C++ CI
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y unzip curl tar make
- name: Download MXE from GitHub Release
run: |
curl -L -o mxe.tar.gz https://github.com/CSReviser/mxe-builder/releases/download/mxe-qt5-v1/mxe-x86_64-w64-mingw32.static.tar.gz
tar -xzf mxe.tar.gz
- name: Build Qt app with qmake (MXE)
env:
MXE_PATH: ${{ github.workspace }}/mxe
run: |
export PATH=$MXE_PATH/usr/bin:$PATH
export QT_QMAKE=$MXE_PATH/usr/x86_64-w64-mingw32.static/qt5/bin/qmake
mkdir build
cd build
$QT_QMAKE ../
make -j$(nproc)
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: QtApp-windows
path: build/*.exe