PackageLLVM #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-x86: | |
runs-on: macos-13 | |
strategy: | |
fail-fast: false | |
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 x86_64 ${{ github.event.inputs.version }} | |
build-macos-arm64: | |
runs-on: macos-14 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install requirements | |
run: pip3 install --break-system-packages -r requirements.txt | |
- name: Package | |
env: | |
GITHUB_USERNAME: ${{ github.actor }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./package_llvm.py --target-architecture arm64 ${{ github.event.inputs.version }} |