Skip to content

Commit

Permalink
CI: Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mpe committed Nov 28, 2024
1 parent 1c5774e commit 3882e68
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/powerpc-rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: powerpc/rust

# Controls when the action will run.
on:
# This allows the build to be triggered manually via the github UI.
workflow_dispatch:

push:
# This triggers the build on a push to any branch
branches:
- '**'

jobs:
rust:
runs-on: ubuntu-24.04

env:
ARCH: powerpc
LLVM: 1

steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: false

- name: Install build tools
run: |
sudo apt install -y llvm clang lld make gcc binutils flex bison gcc-powerpc64le-linux-gnu
- name: Build
run: |
set -x
make ppc64le_defconfig
# Needed to allow RUST to be enabled
./scripts/config --disable MODVERSIONS
# Disable things to speed up the build
./scripts/config -d NET \
-d POWERNV \
-d RUNTIME_TESTING_MENU \
-d VIRTUALIZATION \
-d SOUND \
-d HID_SUPPORT \
-d USB_SUPPORT \
-d BPF_JIT \
-d BLOCK
make olddefconfig
grep _RUST .config
make OBJCOPY=powerpc64le-linux-gnu-objcopy

0 comments on commit 3882e68

Please sign in to comment.