-
Notifications
You must be signed in to change notification settings - Fork 9
63 lines (51 loc) · 1.44 KB
/
musl.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
name: Musl Build
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set environment variables
run: |
ver="12.0"
echo llvm_ver=$ver >> $GITHUB_ENV
echo "llvm_path=$RUNNER_TOOL_CACHE/llvm-$ver" >> $GITHUB_ENV
- name: Checkout musl
uses: actions/checkout@v3
- name: Cache LLVM and Clang (${{ env.llvm_ver }})
id: cache-llvm
uses: actions/cache@v3
with:
path: ${{ env.llvm_path }}
key: llvm-${{ env.llvm_ver }}
- name: Install LLVM and Clang (${{ env.llvm_ver }})
uses: KyleMayes/install-llvm-action@v1
with:
version: ${{ env.llvm_ver }}
directory: ${{ env.llvm_path }}
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
- name: Configure musl
run: |
mkdir ps4
clang -v
./configure --target=x86_64-scei-ps4 --disable-shared CC="clang" \
CFLAGS="-fPIC -DPS4 -D_LIBUNWIND_IS_BAREMETAL=1" \
--prefix=./ps4
- name: Build
run: make
- name: Install
run: make install
- name: Create tarball
working-directory: ps4
run: tar -cvzf musl.tar.gz lib/* include/*
- name: Upload musl
uses: actions/upload-artifact@v3
with:
name: musl.tar.gz
path: ps4/musl.tar.gz
- name: Upload musl zip
uses: actions/upload-artifact@v3
with:
name: musl
path: |
lib/*
include/*