File tree 1 file changed +25
-12
lines changed
1 file changed +25
-12
lines changed Original file line number Diff line number Diff line change 6
6
required : false
7
7
type : string
8
8
default : ' 8.2.2'
9
- arch :
10
- required : false
11
- type : choice
12
- options :
13
- - ' x86_64'
14
- - ' aarch64'
15
- default : ' x86_64'
16
9
17
10
jobs :
18
11
build :
19
- permissions :
20
- contents : write
21
12
runs-on : ubuntu-latest
13
+ strategy :
14
+ matrix :
15
+ arch : [aarch64, x86_64]
22
16
steps :
23
17
24
18
- name : Install dependencies
@@ -40,12 +34,31 @@ jobs:
40
34
- name : Build QEMU
41
35
run : |
42
36
cd qemu-${{ inputs.version }}
43
- ./configure --static --target-list=${{ inputs.arch }}-softmmu
37
+ # --disable-gio is required with --static
38
+ ./configure --static --disable-gio --target-list=${{ matrix.arch }}-softmmu
44
39
make -j$(nproc)
45
40
41
+ - name : Upload QEMU binary
42
+ uses : actions/upload-artifact@v4
43
+ with :
44
+ name : qemu-${{ matrix.arch }}
45
+ path : qemu-${{ inputs.version }}/build/qemu-system-${{ matrix.arch }}
46
+
47
+ release :
48
+ runs-on : ubuntu-latest
49
+ needs : build
50
+ permissions :
51
+ contents : write
52
+ steps :
53
+
54
+ - name : Download QEMU binaries
55
+ uses : actions/download-artifact@v4
56
+
46
57
- name : Publish release
47
58
uses : softprops/action-gh-release@v2
48
59
with :
49
60
prerelease : true
50
- tag_name : qemu-${{ inputs.arch }}-${{ inputs.version }}-${{ github.workflow_sha }}
51
- files : qemu-${{ inputs.version }}/build/qemu-system-${{ inputs.arch }}
61
+ tag_name : qemu-${{ inputs.version }}-${{ github.workflow_sha }}
62
+ files : |
63
+ qemu-system-x86_64
64
+ qemu-system-aarch64
You can’t perform that action at this time.
0 commit comments