mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-20 13:23:08 +00:00
0a4bed1a92
The GitHub runners have most of the required packages installed already. Only install the 3 extra that we need for ct-ng. Signed-off-by: Chris Packham <judge.packham@gmail.com>
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
sample: [
|
|
"arm-unknown-linux-gnueabi",
|
|
"aarch64-unknown-linux-gnu",
|
|
"mips-unknown-elf",
|
|
"powerpc64-unknown-linux-gnu",
|
|
"powerpc-unknown-linux-gnu",
|
|
"x86_64-multilib-linux-uclibc"
|
|
]
|
|
steps:
|
|
- name: "clone"
|
|
uses: actions/checkout@v2
|
|
- name: "prereq"
|
|
run: |
|
|
sudo apt-get install -y gperf help2man libtool-bin
|
|
- name: "build ct-ng"
|
|
run: |
|
|
./bootstrap
|
|
./configure --enable-local
|
|
make
|
|
- name: "build ${{ matrix.sample }}"
|
|
run: |
|
|
mkdir -p src
|
|
./ct-ng ${{ matrix.sample }}
|
|
sed -i -e '/CT_LOG_PROGRESS_BAR/s/y$/n/' .config
|
|
sed -i -e '/CT_LOCAL_TARBALLS_DIR/s/HOME/CT_TOP_DIR/' .config
|
|
sed -i -e '/CT_PREFIX_DIR/s/HOME/CT_TOP_DIR/' .config
|
|
sed -i -e '/CT_LOG_EXTRA/d' .config
|
|
sed -i -e '/CT_LOG_LEVEL_MAX/d' .config
|
|
echo 'CT_LOG_ALL=y' >>.config
|
|
echo 'CT_LOG_LEVEL_MAX="ALL"' >>.config
|
|
./ct-ng build
|