Skip to content

Linux Native build

Linux Native build #42

name: Linux Native build
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: true
ref: ${{ github.head_ref }}
- name: Install aarch64-linux-gnu-gcc
if: steps.check_submodule.outputs.trigger_build == 'true'
run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu && sudo apt-get install -y g++-aarch64-linux-gnu
- name: Install gcc-arm-linux-gnueabihf
if: steps.check_submodule.outputs.trigger_build == 'true'
run: sudo apt-get update && sudo apt-get install -y gcc-arm-linux-gnueabihf && sudo apt-get install -y g++-arm-linux-gnueabihf
- name: Install CUDA Toolkit
if: steps.check_submodule.outputs.trigger_build == 'true'
uses: Jimver/[email protected]
with:
cuda: '12.1.0'
- name: Run linux
if: steps.check_submodule.outputs.trigger_build == 'true'
run: make linux
- name: Remove CUDA installer
if: steps.check_submodule.outputs.trigger_build == 'true'
run: rm -rf cuda_installer-*
- name: Upload Linux Build Artifacts
uses: actions/upload-artifact@v3
with:
name: linux-build
path: 'Whisper.net.Run*/linux-*/*'