-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (44 loc) · 1.3 KB
/
win.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
# GitHub actions - Create QEMU installers for Windows
name: Cross build for Windows
on:
#push:
# branches: [ master ]
# Trigger workflow in GitHub web frontend or from API.
workflow_dispatch:
inputs:
bits:
description: 'Windows target'
required: true
default: any
type: choice
options:
- 'any'
- '32-bit'
- '64-bit'
jobs:
build32:
if: ${{ (github.event.inputs.bits == 'any') || (github.event.inputs.bits == '32-bit') }}
runs-on: [ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- name: Get pacman package manager
run: .github/workflows/pacman.sh i686
- name: Build QEMU installer (32 bit)
run: .github/workflows/build.sh i686
- uses: actions/upload-artifact@v4
with:
name: QEMU Installer Windows 32 bit
path: dist
build64:
if: ${{ (github.event.inputs.bits == 'any') || (github.event.inputs.bits == '64-bit') }}
runs-on: [ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- name: Get pacman package manager
run: .github/workflows/pacman.sh x86_64
- name: Build QEMU installer (64 bit)
run: .github/workflows/build.sh x86_64
- uses: actions/upload-artifact@v4
with:
name: QEMU Installer Windows 64 bit
path: dist