forked from lowRISC/qemu
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (50 loc) · 1.57 KB
/
create_release.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
50
51
name: Create Release
on:
workflow_dispatch:
inputs:
release_tag:
required: true
type: string
jobs:
release:
permissions:
# Necessary permissions to create a release.
contents: write
env:
BUILD_DIR: build
BRANCH_NAME: ${{ github.event.repository.default_branch }}
RELEASE_BIN_ARCHIVE: qemu-ot-earlgrey-${{ inputs.release_tag }}-x86_64-unknown-linux-gnu.tar.gz
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@v3
# Update the package index, then install all dependencies listed in
# the various apt-requirements.txt files in the project.
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y ninja-build libpixman-1-dev
- name: Configure
run: |
mkdir "$BUILD_DIR"
cd "$BUILD_DIR"
../configure --target-list=riscv32-softmmu --without-default-features --enable-tcg \
--enable-tools --enable-trace-backends=log
- name: Build
run: |
cd "$BUILD_DIR"
ninja
ninja qemu-img
- name: Create binary archive
run: |
./scripts/opentitan/make_release.sh "$RELEASE_BIN_ARCHIVE" "$BUILD_DIR" .
- name: Create release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create \
--target "$BRANCH_NAME" \
${{ inputs.release_tag }} \
--generate-notes \
"$RELEASE_BIN_ARCHIVE#QEMU system emulator"