generated from napi-rs/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 79
85 lines (79 loc) · 2.23 KB
/
libc++abi.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
79
80
81
82
83
84
name: Build libc++abi
on:
push:
branches:
- release-libcxxabi
tags-ignore:
- '**'
permissions:
contents: write
id-token: write
attestations: write
jobs:
setup-llvm-version:
runs-on: ubuntu-latest
outputs:
llvm-version: ${{ steps.setup-llvm-version.outputs.llvm-version }}
steps:
- name: Setup
id: setup-llvm-version
run: |
echo "llvm-version=$(cat llvm-version)" >> $GITHUB_OUTPUT
build-musl:
runs-on: ${{ matrix.settings.runs-on }}
needs: setup-llvm-version
name: Build libc++abi for ${{ matrix.settings.arch }} Linux musl
strategy:
matrix:
settings:
- { arch: x86_64, runs-on: ubuntu-latest }
- { arch: aarch64, runs-on: ubuntu-24.04-arm }
steps:
- name: Build in docker
uses: addnab/docker-run-action@v3
with:
image: node:18-alpine
options: -v ${{ github.workspace }}:/build -w /build
run: |
apk add clang llvm wget unzip cmake ninja xz tar musl-dev python3
node scripts/build-c++abi.mjs
- uses: actions/attest-build-provenance@v2
with:
subject-path: |
libc++abi.a
- name: Upload
uses: actions/upload-artifact@v4
with:
name: libc++abi-${{ matrix.settings.arch }}.a
path: libc++abi.a
release:
needs:
- setup-llvm-version
- build-musl
runs-on: ubuntu-latest
steps:
- name: Download x86_64
uses: actions/download-artifact@v4
with:
name: libc++abi-x86_64.a
path: .
- name: Rename
run: |
mv libc++abi.a libc++abi-x86_64.a
- name: Download aarch64
uses: actions/download-artifact@v4
with:
name: libc++abi-aarch64.a
path: .
- name: Rename
run: |
mv libc++abi.a libc++abi-aarch64.a
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
libc++abi-x86_64.a
libc++abi-aarch64.a
name: libc++abi-${{ needs.setup-llvm-version.outputs.llvm-version }}
tag_name: libc++abi-${{ needs.setup-llvm-version.outputs.llvm-version }}
make_latest: false