forked from OkBuddyGSI/gsi_builder
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.15 KB
/
main.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
name: Pixel Experince A64 GSI
on:
workflow_dispatch:
jobs:
test:
name: Build GSIs using foss.crave.io
runs-on: self-hosted
steps:
- name: Cleanup
run: rm -rf *
- name: Create workspace
run: mkdir gsi
continue-on-error: true
- name: Enter Workspace
run: cd gsi
continue-on-error: true
# Check-out in order to access the repository's files.
- name: Check-out to repository
uses: actions/checkout@v4
- name: Exports
run: |
export BUILD_HOSTNAME=crave
export BUILD_USERNAME=YZBruh
- name: Run Script
run: bash build.sh
# Only reach this when the user killed the workflow.
- name: Execute if the job is cancelled
if: ${{ cancelled() }}
run: crave stop --all
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: |
/home/builds/*.img.xz
name: RisingOS-${{ github.run_id }}
tag_name: ${{ github.run_id }}
body: |
Target: PixelExperience-Generic A64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}