mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 13:47:48 +00:00
CI: Build ct-ng once
Build ct-ng once and use the result to build the toolchains. Signed-off-by: Chris Packham <judge.packham@gmail.com>
This commit is contained in:
parent
d52c897a71
commit
d9791f4fcb
@ -5,7 +5,35 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
crosstool:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
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 --prefix=$PWD/.local/
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
tar -cf ct-ng.tar .local/
|
||||||
|
- name: "upload ct-ng"
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: crosstool
|
||||||
|
path: ct-ng.tar
|
||||||
|
- name: "upload config.log"
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: config.log
|
||||||
|
path: config.log
|
||||||
|
if: ${{ always() }}
|
||||||
|
|
||||||
|
toolchains:
|
||||||
|
needs: crosstool
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -18,26 +46,21 @@ jobs:
|
|||||||
"x86_64-multilib-linux-uclibc"
|
"x86_64-multilib-linux-uclibc"
|
||||||
]
|
]
|
||||||
steps:
|
steps:
|
||||||
- name: "clone"
|
- name: "download ct-ng"
|
||||||
uses: actions/checkout@v2
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: crosstool
|
||||||
|
- name: "extract ct-ng"
|
||||||
|
run: |
|
||||||
|
tar -xf ct-ng.tar
|
||||||
- name: "prereq"
|
- name: "prereq"
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y gperf help2man libtool-bin
|
sudo apt-get install -y gperf help2man libtool-bin
|
||||||
- name: "build ct-ng"
|
echo "::add-path::$GITHUB_WORKSPACE/.local/bin"
|
||||||
run: |
|
|
||||||
./bootstrap
|
|
||||||
./configure --enable-local
|
|
||||||
make
|
|
||||||
- name: "upload config.log"
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: config.log
|
|
||||||
path: config.log
|
|
||||||
if: ${{ always() }}
|
|
||||||
- name: "build ${{ matrix.sample }}"
|
- name: "build ${{ matrix.sample }}"
|
||||||
run: |
|
run: |
|
||||||
mkdir -p src
|
mkdir -p src
|
||||||
./ct-ng ${{ matrix.sample }}
|
ct-ng ${{ matrix.sample }}
|
||||||
sed -i -e '/CT_LOG_PROGRESS_BAR/s/y$/n/' .config
|
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_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_PREFIX_DIR/s/HOME/CT_TOP_DIR/' .config
|
||||||
@ -45,7 +68,7 @@ jobs:
|
|||||||
sed -i -e '/CT_LOG_LEVEL_MAX/d' .config
|
sed -i -e '/CT_LOG_LEVEL_MAX/d' .config
|
||||||
echo 'CT_LOG_ALL=y' >>.config
|
echo 'CT_LOG_ALL=y' >>.config
|
||||||
echo 'CT_LOG_LEVEL_MAX="ALL"' >>.config
|
echo 'CT_LOG_LEVEL_MAX="ALL"' >>.config
|
||||||
./ct-ng build
|
ct-ng build
|
||||||
- name: "upload log"
|
- name: "upload log"
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user