File tree 1 file changed +51
-0
lines changed
1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build QEMU
2
+ on :
3
+ workflow_dispatch :
4
+ inputs :
5
+ version :
6
+ required : false
7
+ type : string
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
+
17
+ jobs :
18
+ build :
19
+ permissions :
20
+ contents : write
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+
24
+ - name : Install dependencies
25
+ run : sudo apt install -y libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build
26
+
27
+ - name : Cache QEMU source
28
+ id : cache
29
+ uses : actions/cache@v4
30
+ with :
31
+ path : qemu-${{ inputs.version }}
32
+ key : qemu-${{ inputs.version }}
33
+
34
+ - name : Download QEMU source
35
+ if : steps.cache.outputs.cache-hit != 'true'
36
+ run : |
37
+ wget --no-verbose https://download.qemu.org/qemu-${{ inputs.version }}.tar.xz
38
+ tar -xf qemu-${{ inputs.version }}.tar.xz
39
+
40
+ - name : Build QEMU
41
+ run : |
42
+ cd qemu-${{ inputs.version }}
43
+ ./configure --static --target-list=${{ inputs.arch }}-softmmu
44
+ make -j$(nproc)
45
+
46
+ - name : Publish release
47
+ uses : softprops/action-gh-release@v2
48
+ with :
49
+ prerelease : true
50
+ tag_name : qemu-${{ inputs.arch }}-${{ inputs.version }}-${{ github.workflow_sha }}
51
+ files : qemu-${{ inputs.version }}/build/qemu-system-${{ inputs.arch }}
You can’t perform that action at this time.
0 commit comments