KVS/.github/workflows/build.yaml
kxtzownsu a0b118bbbb kvs: optimize stuff
changelog:
- make hex_utils includes work across C files
- have Makefile use `build/$(ARCH)` instead of `build/bin/binary-$(ARCH)`
- small bugfixes
- add is_ti50.c & place for future tools
- global KERNVER_TYPE variable (if kernver.h is included)
2024-12-29 08:19:20 +00:00

58 lines
1.3 KiB
YAML

name: build all
on:
push:
branches: [ "2.0" ]
pull_request:
branches: [ "2.0" ]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
# step 0: bootstrap rustup
- name: init rustup
run: rustup default stable
# step 1: install deps
- name: install packages
run: sudo apt install -y gcc make musl-tools musl-dev gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu
- name: install x86_64 rust toolchain
run: rustup target add x86_64-unknown-linux-musl
- name: install aarch64 rust toolchain
run: rustup target add aarch64-unknown-linux-musl
- name: install armv7 rust toolchain
run: rustup target add armv7-unknown-linux-musleabihf
# step 2: build project
- name: build x86_64 bins
run: make all
- name: Upload x86_64 bins
uses: actions/upload-artifact@v4
with:
name: x86_64
path: build/x86_64/
- name: build aarch64 bins
run: ARCH=aarch64 make all
- name: Upload aarch64 bins
uses: actions/upload-artifact@v4
with:
name: aarch64
path: build/aarch64/
- name: build armv7 bins
run: CC=arm-linux-gnueabihf-gcc ARCH=armv7 make all
- name: Upload armv7 bins
uses: actions/upload-artifact@v4
with:
name: armv7
path: build/armv7/