forked from micbou/llvm
-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (43 loc) · 1.51 KB
/
package_llvm.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
name: PackageLLVM
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
version:
description: LLVM Version
required: true
jobs:
build-linux:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
target: [ x86_64, arm, aarch64 ]
steps:
- uses: actions/checkout@v4
- name: install requirements
run: pip3 install -r requirements.txt
- name: Uninstall homebrew
run: NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
- name: install cross-compilers
run: sudo apt-get update && sudo apt-get install g++-arm-linux-gnueabihf gcc-arm-linux-gnueabihf g++-aarch64-linux-gnu gcc-aarch64-linux-gnu
- name: Package
env:
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./package_llvm.py --target-architecture ${{ matrix.target }} ${{ github.event.inputs.version }}
build-macos:
runs-on: macos-11
strategy:
fail-fast: false
matrix:
target: [ x86_64, arm64 ]
steps:
- uses: actions/checkout@v4
- name: install requirements
run: pip3 install -r requirements.txt
- name: Package
env:
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./package_llvm.py --target-architecture ${{ matrix.target }} ${{ github.event.inputs.version }}