-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathaction.yml
More file actions
35 lines (31 loc) · 1.01 KB
/
action.yml
File metadata and controls
35 lines (31 loc) · 1.01 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
name: "Build Linux libraries"
description: "Create artifact for Linux libraries"
runs:
using: "composite"
steps:
- name: Install Rust Nightly
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2025-12-05
components: rust-src
targets: aarch64-unknown-linux-gnu,x86_64-unknown-linux-gnu,i686-unknown-linux-gnu,riscv64gc-unknown-linux-gnu,armv7-unknown-linux-gnueabihf
- name: Install cross-compiling GCC
shell: bash
run: |
sudo apt update
sudo apt install -y gcc-aarch64-linux-gnu gcc-riscv64-linux-gnu gcc-arm-linux-gnueabihf gcc-i686-linux-gnu
- name: Build binaries
shell: bash
run: |
./tool/build_linux.sh x64
./tool/build_linux.sh aarch64
./tool/build_linux.sh x86
./tool/build_linux.sh armv7
./tool/build_linux.sh riscv64gc
- uses: actions/upload-artifact@v4
with:
name: linux-library
retention-days: 14
path: |
*.so
*.linux.a