File tree 1 file changed +27
-13
lines changed
1 file changed +27
-13
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
25
- run : sudo apt install -y libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build
19
+ run : sudo apt install -y libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build libslirp-dev
26
20
27
21
- name : Cache QEMU source
28
22
id : cache
@@ -40,12 +34,32 @@ jobs:
40
34
- name : Build QEMU
41
35
run : |
42
36
cd qemu-${{ inputs.version }}
43
- ./configure --static --target-list=${{ inputs .arch }}-softmmu
37
+ ./configure --enable-slirp --target-list=${{ matrix .arch }}-softmmu
44
38
make -j$(nproc)
45
39
40
+ strip build/qemu-system-${{ matrix.arch }}
41
+
42
+ - name : Upload QEMU binary
43
+ uses : actions/upload-artifact@v4
44
+ with :
45
+ name : qemu-${{ matrix.arch }}
46
+ path : qemu-${{ inputs.version }}/build/qemu-system-${{ matrix.arch }}
47
+
48
+ release :
49
+ runs-on : ubuntu-latest
50
+ needs : build
51
+ permissions :
52
+ contents : write
53
+ steps :
54
+
55
+ - name : Download QEMU binaries
56
+ uses : actions/download-artifact@v4
57
+
46
58
- name : Publish release
47
59
uses : softprops/action-gh-release@v2
48
60
with :
49
61
prerelease : true
50
- tag_name : qemu-${{ inputs.arch }}-${{ inputs.version }}-${{ github.workflow_sha }}
51
- files : qemu-${{ inputs.version }}/build/qemu-system-${{ inputs.arch }}
62
+ tag_name : qemu-${{ inputs.version }}-${{ github.workflow_sha }}
63
+ files : |
64
+ qemu-x86_64/qemu-system-x86_64
65
+ qemu-aarch64/qemu-system-aarch64
You can’t perform that action at this time.
0 commit comments