forked from KreitinnSoftware/MiceWine-RootFS-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.36 KB
/
build.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
name: Build and Release MiceWine RootFS
on:
push:
branches: "*"
pull_request:
branches: "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Environment Preparation"
run: |
sudo apt update
sudo apt install -y python3 python3-pip cmake wget git p7zip build-essential pkg-config xmlto fop xsltproc llvm autoconf libxml-parser-perl bison flex
pip3 install mako meson ninja docutils
sudo ln -sf ~/.local/bin/meson /usr/bin/meson
- name: "Setup Basic Android x86_64 Runtime Environment"
run: |
git clone https://github.com/termux/termux-docker.git
sudo cp -rf termux-docker/system/x86 /system
sudo chown -R $(whoami):$(whoami) /system
sudo chmod 755 -R /system
- name: "Start Building (aarch64)"
run: |
./build-all.sh aarch64
mv logs /data/data/com.micewine.emu/files/usr
- name: "Create RootFS File (aarch64)"
run: |
./create-rootfs.sh aarch64
- name: "Get Short SHA"
run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: "Create Release"
uses: softprops/action-gh-release@v2
with:
name: "MiceWine RootFS ${{ github.sha }}"
tag_name: ${{ env.SHORT_SHA }}
files: |
/home/runner/MiceWine-RootFS-aarch64.zip