feat use qemu-user-binfmt
Some checks failed
linux-arm-gcc / linux-gcc-arm (push) Failing after 1m19s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Failing after 1m1s
linux-arm-gcc / linux-gcc-armhf (push) Successful in 1m37s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 1m43s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 1m49s
linux-arm-gcc / linux-gcc-arm (pull_request) Failing after 21s
linux-arm-gcc / linux-gcc-armhf (pull_request) Successful in 1m44s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (pull_request) Successful in 1m6s
linux-mips64-gcc / linux-gcc-mips64el (Release) (pull_request) Successful in 2m19s
linux-x64-gcc / linux-gcc (Debug) (pull_request) Successful in 1m53s
linux-x64-gcc / linux-gcc (Release) (pull_request) Successful in 1m16s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (pull_request) Failing after 12m13s
Some checks failed
linux-arm-gcc / linux-gcc-arm (push) Failing after 1m19s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Failing after 1m1s
linux-arm-gcc / linux-gcc-armhf (push) Successful in 1m37s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 1m43s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 1m49s
linux-arm-gcc / linux-gcc-arm (pull_request) Failing after 21s
linux-arm-gcc / linux-gcc-armhf (pull_request) Successful in 1m44s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (pull_request) Successful in 1m6s
linux-mips64-gcc / linux-gcc-mips64el (Release) (pull_request) Successful in 2m19s
linux-x64-gcc / linux-gcc (Debug) (pull_request) Successful in 1m53s
linux-x64-gcc / linux-gcc (Release) (pull_request) Successful in 1m16s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (pull_request) Failing after 12m13s
This commit is contained in:
parent
ea416993d5
commit
12fa524c3f
@ -31,41 +31,10 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: cache-qemu
|
|
||||||
id: cache-qemu
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: qemu-install
|
|
||||||
key: qemu-aarch64-install-20220502-ubuntu-2004-2
|
|
||||||
- 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: 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
|
|
||||||
# uses: actions/checkout@v4
|
|
||||||
# with:
|
|
||||||
# repository: qemu/qemu
|
|
||||||
# path: qemu
|
|
||||||
# ref: f5643914a9e8f79c606a76e6a9d7ea82a3fc3e65
|
|
||||||
- name: qemu
|
|
||||||
if: steps.cache-qemu.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
cd qemu
|
|
||||||
./configure --prefix=$GITHUB_WORKSPACE/qemu-install --target-list=aarch64-linux-user --disable-system
|
|
||||||
make -j$(nproc)
|
|
||||||
make install
|
|
||||||
- name: aarch64-gnu-toolchain
|
- name: aarch64-gnu-toolchain
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
sudo apt-get install -y cmake make g++-aarch64-linux-gnu
|
sudo apt-get install -y cmake make g++-aarch64-linux-gnu qemu-user-binfmt
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
@ -73,9 +42,7 @@ jobs:
|
|||||||
cmake --build . -j $(nproc)
|
cmake --build . -j $(nproc)
|
||||||
- name: test
|
- name: test
|
||||||
run: |-
|
run: |-
|
||||||
export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH
|
|
||||||
cd build
|
cd build
|
||||||
ln -sf /usr/aarch64-linux-gnu/lib/ld-linux-aarch64.so.1 /lib/ld-linux-aarch64.so.1
|
ln -sf /usr/aarch64-linux-gnu/lib/ld-linux-aarch64.so.1 /lib/ld-linux-aarch64.so.1
|
||||||
export LD_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib
|
export LD_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib
|
||||||
qemu-aarch64 ctest --output-on-failure -j$(nproc)
|
ctest --output-on-failure -j$(nproc)
|
||||||
# TESTS_EXECUTABLE_LOADER=qemu-aarch64 TESTS_EXECUTABLE_LOADER_ARGUMENTS="-L;/usr/aarch64-linux-gnu" ctest --output-on-failure -j $(nproc)
|
|
||||||
|
@ -31,47 +31,10 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: cache-qemu
|
|
||||||
id: cache-qemu
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: qemu-install
|
|
||||||
key: qemu-arm-install-20220502-2
|
|
||||||
- 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: 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
|
|
||||||
# uses: actions/checkout@v4
|
|
||||||
# with:
|
|
||||||
# repository: qemu/qemu
|
|
||||||
# path: qemu
|
|
||||||
# ref: f5643914a9e8f79c606a76e6a9d7ea82a3fc3e65
|
|
||||||
- name: qemu
|
|
||||||
if: steps.cache-qemu.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
cd qemu
|
|
||||||
./configure --prefix=$GITHUB_WORKSPACE/qemu-install --target-list=arm-linux-user --disable-system
|
|
||||||
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-arm-install-20220502-2
|
|
||||||
path: qemu-install
|
|
||||||
- name: arm-gnu-toolchain
|
- name: arm-gnu-toolchain
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
sudo apt-get install -y cmake make g++-arm-linux-gnueabi
|
sudo apt-get install -y cmake make g++-arm-linux-gnueabi qemu-static
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
@ -79,56 +42,18 @@ jobs:
|
|||||||
cmake --build . -j $(nproc)
|
cmake --build . -j $(nproc)
|
||||||
- name: test
|
- name: test
|
||||||
run: |
|
run: |
|
||||||
export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH
|
|
||||||
cd build
|
cd build
|
||||||
|
ln -sf /usr/arm-linux-gnueabi/lib/ld-linux.so.3
|
||||||
export LD_LIBRARY_PATH=/usr/arm-linux-gnueabi/lib
|
export LD_LIBRARY_PATH=/usr/arm-linux-gnueabi/lib
|
||||||
qemu-arm ctest --output-on-failure -j$(nproc)
|
qemu-arm ctest --output-on-failure -j$(nproc)
|
||||||
# TESTS_EXECUTABLE_LOADER=qemu-arm TESTS_EXECUTABLE_LOADER_ARGUMENTS="-L;/usr/arm-linux-gnueabi" ctest --output-on-failure -j $(nproc)
|
|
||||||
linux-gcc-armhf:
|
linux-gcc-armhf:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: cache-qemu
|
|
||||||
id: cache-qemu
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: qemu-install
|
|
||||||
key: qemu-arm-install-20220502-2
|
|
||||||
- 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: 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
|
|
||||||
# uses: actions/checkout@v4
|
|
||||||
# with:
|
|
||||||
# repository: qemu/qemu
|
|
||||||
# path: qemu
|
|
||||||
# ref: f5643914a9e8f79c606a76e6a9d7ea82a3fc3e65
|
|
||||||
- name: qemu
|
|
||||||
if: steps.cache-qemu.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
cd qemu
|
|
||||||
./configure --prefix=$GITHUB_WORKSPACE/qemu-install --target-list=arm-linux-user --disable-system
|
|
||||||
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-arm-install-20220502-2
|
|
||||||
path: qemu-install
|
|
||||||
- name: arm-gnu-toolchain
|
- name: arm-gnu-toolchain
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
sudo apt-get install -y cmake make g++-arm-linux-gnueabihf
|
sudo apt-get install -y cmake make g++-arm-linux-gnueabihf qemu-user-binfmt
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
@ -136,9 +61,7 @@ jobs:
|
|||||||
cmake --build . -j $(nproc)
|
cmake --build . -j $(nproc)
|
||||||
- name: test
|
- name: test
|
||||||
run: |-
|
run: |-
|
||||||
export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH
|
|
||||||
cd build
|
cd build
|
||||||
ln -sf /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 /lib/ld-linux-armhf.so.3
|
ln -sf /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 /lib/ld-linux-armhf.so.3
|
||||||
export LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib
|
export LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib/
|
||||||
qemu-arm ctest --output-on-failure -j$(nproc)
|
ctest --output-on-failure -j$(nproc)
|
||||||
# TESTS_EXECUTABLE_LOADER=qemu-arm TESTS_EXECUTABLE_LOADER_ARGUMENTS="-L;/usr/arm-linux-gnueabihf" ctest --output-on-failure -j $(nproc)
|
|
||||||
|
@ -35,43 +35,10 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: cache-qemu
|
|
||||||
id: cache-qemu
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: qemu-install
|
|
||||||
key: qemu-mips64el-install-20220502-2
|
|
||||||
- name: checkout-qemu
|
|
||||||
# uses: actions/checkout@v4
|
|
||||||
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: qemu
|
|
||||||
if: steps.cache-qemu.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
cd $GITHUB_WORKSPACE/qemu
|
|
||||||
./configure --target-list=mips64el-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-mips64el-install-20220502-2
|
|
||||||
path: qemu-install
|
|
||||||
- name: mips64el-gnuabi64-toolchain
|
- name: mips64el-gnuabi64-toolchain
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
sudo apt-get install -y cmake make g++-mips64el-linux-gnuabi64
|
sudo apt-get install -y cmake make g++-mips64el-linux-gnuabi64 qemu-user-binfmt
|
||||||
- name: configure
|
- name: configure
|
||||||
run: |
|
run: |
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
@ -80,6 +47,7 @@ jobs:
|
|||||||
run: cmake --build build --target all -j `nproc`
|
run: cmake --build build --target all -j `nproc`
|
||||||
- name: test
|
- name: test
|
||||||
run: |-
|
run: |-
|
||||||
export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH
|
|
||||||
cd build
|
cd build
|
||||||
|
ln -sf /usr/mips64el-linux-gnuabi64/lib/ld-2.30.so /lib/ld-2.30.so
|
||||||
|
export LD_LIBRARY_PATH=/usr/mips64el-linux-gnuabi64/lib/:/usr/mips64el-linux-gnuabi64/lib64/
|
||||||
ctest --output-on-failure -j`nproc`
|
ctest --output-on-failure -j`nproc`
|
||||||
|
Loading…
Reference in New Issue
Block a user