-
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (66 loc) · 2.63 KB
/
toolchain-ci.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Build musl-cross-make for Android
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
env:
CFLAG: -march=x86-64 -Os
steps:
- uses: actions/checkout@v4
with:
repository: "pmmp/musl-cross-make"
- name: Set up dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential musl-tools gcc-aarch64-linux-gnu wget curl
- name: Cache Makefile
uses: actions/cache@v4
with:
path: |
sources
build
key: ${{ runner.os }}-make_tc-${{ hashFiles('Makefile') }}
restore-keys: |
${{ runner.os }}-make_tc-
- name: Create custom config.mak
run: |
cp config.mak.dist config.mak
echo 'OUTPUT="/opt/cross/"' >> config.mak
echo 'COMMON_CONFIG += CFLAGS="${}" CXXFLAGS="${{ env.CFLAG }}" ' >> config.mak
- name: Build musl-cross-make
run: make
continue-on-error: false
- name: Install musl-cross-make toolchain
run: sudo make install
- name: Create tarball of the toolchain
run: sudo tar -cJvf musl-cross-make-toolchain.tar.xz -C /opt/cross/ .
- name: Release tarball
uses: softprops/action-gh-release@v2
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repository: Veha0001/pmmp-droid
make_latest: false
tag_name: "build-tc"
files: musl-cross-make-toolchain.tar.xz
name: musl-cross-make
body: |
# musl-cross-make Toolchain Release
## Release Details
This release includes the latest build of the **musl-cross-make** toolchain for Android. It is designed for cross-compiling applications using the musl C library.
[![Build badge](https://img.shields.io/badge/Build-Action-lightgreen?style=for-the-badge&logo=githubactions&logoColor=white)](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
### What's Included
- **Target:** aarch64-linux-musl
- **Output Directory:** The compiled toolchain is located in the `/opt/cross` directory.
### Build Configuration
The build was configured with the following options:
- **Common Configurations:**
- Compiler optimizations:
- `CFLAGS="${{ env.CFLAG }}"`
- `CXXFLAGS="${{ env.CFLAG }}"`
### Installation
To install the toolchain, use the following command:
```bash
make install
```