forked from zhaarey/wrapper
-
Notifications
You must be signed in to change notification settings - Fork 52
58 lines (45 loc) · 1.42 KB
/
build.yml
File metadata and controls
58 lines (45 loc) · 1.42 KB
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
52
53
54
55
56
57
name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install LLVM
run: sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
- name: Set up Android NDK r23b
run: |
curl -fLO https://dl.google.com/android/repository/android-ndk-r23b-linux.zip
unzip -qd . android-ndk-r23b-linux.zip
- name: Build
run: |
mkdir build
cd build
cmake ..
make
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Wrapper.x86_64.${{ steps.vars.outputs.sha_short }}
include-hidden-files: true
path: |
rootfs
wrapper
Dockerfile
- name: Create Release Zip File
run: zip -r Wrapper.x86_64.${{ steps.vars.outputs.sha_short }}.zip rootfs/ wrapper Dockerfile
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: Wrapper.x86_64.${{ steps.vars.outputs.sha_short }}.zip
body: ${{ github.event.head_commit.message }}
name: Wrapper.x86_64.${{ steps.vars.outputs.sha_short }}
tag_name: Wrapper.x86_64.${{ steps.vars.outputs.sha_short }}
make_latest: true