Skip to content

Commit 0c5528a

Browse files
committed
workflows: build: add build CI workflow
Signed-off-by: James Calligeros <[email protected]>
1 parent 8f7ebc8 commit 0c5528a

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: build
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
workflow_call:
8+
outputs:
9+
installer_ver:
10+
description: asahi-installer built version string
11+
value: ${{ jobs.build.outputs.installer_ver }}
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
outputs:
17+
installer_ver: ${{ steps.compile.outputs.installer_ver }}
18+
19+
steps:
20+
- uses: actions/checkout@v5
21+
with:
22+
fetch-depth: 0
23+
fetch-tags: true
24+
submodules: recursive
25+
26+
- name: Install build dependencies
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install --no-install-recommends -y gcc-aarch64-linux-gnu
30+
sudo apt-get install --no-install-recommends -y 7zip jq
31+
rustup target install aarch64-unknown-none-softfloat
32+
33+
- name: Build asahi-installer
34+
id: compile
35+
run: |
36+
./build.sh
37+
echo "installer_ver=$(cat releases/latest).tar.gz" >> $GITHUB_OUTPUT
38+
39+
- name: Upload artefact
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: installer-build
43+
path: |
44+
releases/*

0 commit comments

Comments
 (0)