Skip to content

Commit d73ea10

Browse files
authored
build linux arm64 on github hosted runner (#8241)
* build linux arm64 on github hosted runner Signed-off-by: Anton-4 <[email protected]> * disable ci manager Signed-off-by: Anton-4 <[email protected]> * sudo llvm.sh Signed-off-by: Anton-4 <[email protected]> * rm clang Signed-off-by: Anton-4 <[email protected]> * normal triggers --------- Signed-off-by: Anton-4 <[email protected]>
1 parent 97e4944 commit d73ea10

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/nightly_linux_arm64.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
on:
2-
#pull_request:
2+
# pull_request:
33
workflow_dispatch:
44
schedule:
55
- cron: "0 9 * * *"
@@ -12,18 +12,35 @@ permissions: {}
1212
jobs:
1313
build:
1414
name: build and package nightly release
15-
runs-on: [self-hosted, Linux, ARM64]
15+
runs-on: [ubuntu-22.04-arm]
1616
timeout-minutes: 110
1717

1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
- name: Update PATH to use zig 13
21+
- uses: mlugg/setup-zig@475c97be87a204e6c57fe851f970bd02005a70f0
22+
with:
23+
version: 0.13.0
24+
25+
- name: install apt dependencies
2226
run: |
23-
echo "PATH=/home/username/Downloads/zig-linux-aarch64-0.13.0:$PATH" >> $GITHUB_ENV
27+
sudo apt -y install wget git
28+
sudo apt -y install libunwind-dev pkg-config zlib1g-dev
29+
sudo apt -y install unzip # for www/build.sh
30+
sudo apt -y install lsb-release software-properties-common gnupg # for llvm
2431
2532
- run: zig version
2633

34+
- name: install llvm
35+
run: |
36+
wget https://apt.llvm.org/llvm.sh
37+
chmod +x llvm.sh
38+
sudo ./llvm.sh 18
39+
sudo rm -rf /usr/bin/clang
40+
sudo ln -s /usr/bin/clang-18 /usr/bin/clang
41+
sudo ln -s /usr/bin/lld-18 /usr/bin/ld.lld
42+
sudo apt -y install libpolly-18-dev # required by llvm-sys crate
43+
2744
- name: create version.txt
2845
run: ./ci/write_version.sh
2946

0 commit comments

Comments
 (0)