Skip to content

Commit 7303b5d

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

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v5
18+
with:
19+
fetch-depth: 0
20+
fetch-tags: true
21+
submodules: recursive
22+
23+
- name: Install build dependencies
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install --no-install-recommends -y gcc-aarch64-linux-gnu
27+
sudo apt-get install --no-install-recommends -y 7zip jq
28+
rustup target install aarch64-unknown-none-softfloat
29+
30+
- name: Build asahi-installer
31+
run: |
32+
./build.sh
33+
echo "installer_ver=$(cat releases/latest)" >> $GITHUB_OUTPUT
34+
35+
- name: Upload artefact
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: installer-build
39+
path: |
40+
releases/*

0 commit comments

Comments
 (0)