-
-
Notifications
You must be signed in to change notification settings - Fork 118
44 lines (38 loc) · 1.11 KB
/
build.yaml
File metadata and controls
44 lines (38 loc) · 1.11 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
name: build
on:
pull_request:
branches: [ main ]
workflow_dispatch:
workflow_call:
outputs:
installer_ver:
description: asahi-installer built version string
value: ${{ jobs.build.outputs.installer_ver }}
jobs:
build:
runs-on: ubuntu-latest
outputs:
installer_ver: ${{ steps.compile.outputs.installer_ver }}
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
fetch-tags: true
submodules: recursive
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y gcc-aarch64-linux-gnu
sudo apt-get install --no-install-recommends -y 7zip jq
rustup target install aarch64-unknown-none-softfloat
- name: Build asahi-installer
id: compile
run: |
./build.sh
echo "installer_ver=$(cat releases/latest).tar.gz" >> $GITHUB_OUTPUT
- name: Upload artefact
uses: actions/upload-artifact@v4
with:
name: installer-build
path: |
releases/*