tqcq
aba94bb9eb
All checks were successful
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m17s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 1m39s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m42s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m53s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m56s
linux-x64-gcc / linux-gcc (push) Successful in 2m12s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 3m41s
Co-authored-by: tqcq <99722391+tqcq@users.noreply.github.com> Reviewed-on: #1
95 lines
2.9 KiB
YAML
95 lines
2.9 KiB
YAML
name: linux-hisiv500-gcc
|
|
on:
|
|
push:
|
|
paths:
|
|
- ".gitea/workflows/linux-hisiv500-gcc.yaml"
|
|
- "toolchains/hisiv500.toolchain.cmake"
|
|
- "3party/**"
|
|
- "src/**"
|
|
- "tests/**"
|
|
- "CMakeLists.txt"
|
|
- "cmake/**"
|
|
pull_request:
|
|
paths:
|
|
- ".gitea/workflows/linux-hisiv500-gcc.yaml"
|
|
- "toolchains/hisiv500.toolchain.cmake"
|
|
- "3party/**"
|
|
- "src/**"
|
|
- "tests/**"
|
|
- "CMakeLists.txt"
|
|
- "cmake/**"
|
|
|
|
concurrency:
|
|
group: linux-hisiv500-gcc-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
- read
|
|
|
|
jobs:
|
|
linux-gcc-hisiv500:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
|
|
- name: cache-qemu
|
|
id: cache-qemu
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: qemu-install
|
|
key: qemu-hisiv500-install-20231206-1
|
|
|
|
- name: checkout-qemu
|
|
if: steps.cache-qemu.outputs.cache-hit != 'true'
|
|
run: |
|
|
mkdir qemu && cd qemu
|
|
git init
|
|
git remote add origin https://gitlab.com/qemu-project/qemu.git
|
|
git fetch --depth=1 origin f5643914a9e8f79c606a76e6a9d7ea82a3fc3e65
|
|
git checkout f5643914a9e8f79c606a76e6a9d7ea82a3fc3e65
|
|
|
|
- name: install-qemu-build-deps
|
|
if: steps.cache-qemu.outputs.cache-hit != 'true'
|
|
run: |
|
|
sudo apt-get update -y
|
|
sudo apt-get install -y autoconf automake autotools-dev ninja-build
|
|
|
|
- name: build-qemu
|
|
if: steps.cache-qemu.outputs.cache-hit != 'true'
|
|
run: |
|
|
cd qemu
|
|
./configure --target-list=arm-linux-user --prefix=$GITHUB_WORKSPACE/qemu-install
|
|
make -j `nproc`
|
|
make install
|
|
|
|
- name: set-qemu-cache
|
|
uses: actions/cache/save@v3
|
|
if: steps.cache-qemu.outputs.cache-hit != 'true'
|
|
with:
|
|
key: qemu-hisiv500-install-20231206-1
|
|
path: qemu-install
|
|
|
|
- name: build-in-container
|
|
uses: addnab/docker-run-action@v3
|
|
with:
|
|
image: tqcq/ubuntu:hisi
|
|
options: --rm --volumes-from ${{ env.JOB_CONTAINER_NAME }}
|
|
run: |
|
|
cd ${{ github.workspace }}
|
|
sudo apt-get update
|
|
sudo apt-get install -y libarchive-dev libssl-dev autoconf libtool pkg-config cmake make gcc g++ git
|
|
cmake . -Bbuild -DCMAKE_TOOLCHAIN_FILE=toolchains/hisiv500.toolchain.cmake -DULIB_BUILD_TESTS=OFF -DCMAKE_CROSSCOMPILING_EMULATOR="qemu-arm;-L;/opt/hisi-linux/x86-arm/arm-hisiv500-linux/"
|
|
cmake --build build --target all -- -j `nproc`
|
|
|
|
- name: test-in-centos
|
|
uses: addnab/docker-run-action@v3
|
|
with:
|
|
image: tqcq/hisi:centos
|
|
options: --rm --volumes-from ${{ env.JOB_CONTAINER_NAME }}
|
|
run: |
|
|
cd ${{ github.workspace }}
|
|
export PATH=${{ github.workspace }}/qemu-install/bin:$PATH
|
|
cd build && ctest --output-on-failure -j `nproc`
|