Skip to content

Commit

Permalink
gh-actions: if skiping the emul tests, then skip compiling them
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Sep 13, 2024
1 parent 99ac62b commit 4d0fddd
Showing 1 changed file with 30 additions and 32 deletions.
62 changes: 30 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
key: ${{ github.job }}-${{ matrix.isax }}
- name: Install APT Dependencies
run: |
sudo apt-get install -y ninja-build ninja-build pipx parallel
sudo apt-get install -y ninja-build ninja-build pipx parallel jq
# sudo apt-get purge -y gcc g++
# sudo ln -s /usr/bin/gcc-13 /usr/bin/gcc
# sudo ln -s /usr/bin/g++-13 /usr/bin/g++
Expand All @@ -135,14 +135,12 @@ jobs:
test/check-flags.sh query && echo Tests with $CFLAGS will be run natively
test/check-flags.sh query || echo Tests with $CFLAGS will be run using SDE
- name: Build
run: ninja -C build -v
run: meson compile -C build --verbose $(meson introspect --targets build | jq -r 'map(.filename[0]) | map(select(contains("-native-"))) | join(" ")' | sed "s=${PWD}/build/==g")
- name: Test
run: meson test -C build --print-errorlogs --wrapper "${GITHUB_WORKSPACE}/test/check-flags.sh sde" $(meson test -C build --list | grep -v emul)
run: meson test -C build --print-errorlogs --wrapper "${GITHUB_WORKSPACE}/test/check-flags.sh sde" $(meson test -C build --list | grep /native/)

x86-xop:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
env:
CFLAGS: -Wall -Wextra -Werror -march=bdver2
CXXFLAGS: -Wall -Wextra -Werror -march=bdver2
Expand Down Expand Up @@ -257,14 +255,14 @@ jobs:
run: cat /proc/cpuinfo
- name: Install APT Dependencies
run: |
sudo apt-get install -y ninja-build ninja-build parallel libsleef-dev pipx
sudo apt-get install -y ninja-build ninja-build parallel libsleef-dev pipx jq
pipx install meson==0.55.1
- name: Configure
run: meson setup build -Dsleef=enabled
- name: Build
run: ninja -C build -v
run: meson compile -C build --verbose $(meson introspect --targets build | jq -r 'map(.filename[0]) | map(select(contains("-native-"))) | join(" ")' | sed "s=${PWD}/build/==g")
- name: Test
run: meson test -C build --print-errorlogs $(meson test -C build --list | grep -v emul)
run: meson test -C build --print-errorlogs $(meson test -C build --list | grep /native/)

gcc:
strategy:
Expand Down Expand Up @@ -323,7 +321,7 @@ jobs:
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get -yq install gcovr pipx ninja-build parallel gcc-${{ matrix.version }} g++-${{ matrix.version }}
sudo apt-get -yq install gcovr pipx ninja-build parallel gcc-${{ matrix.version }} g++-${{ matrix.version }} jq
sudo apt-get -y purge g++ gcc
pipx install meson==0.55.1
- name: ccache
Expand All @@ -340,9 +338,9 @@ jobs:
- name: Configure
run: meson setup build
- name: Build
run: meson compile -C build --verbose
run: meson compile -C build --verbose $(meson introspect --targets build | jq -r 'map(.filename[0]) | map(select(contains("-native-"))) | join(" ")' | sed "s=${PWD}/build/==g")
- name: Test
run: meson test -C build --print-errorlogs $(meson test -C build --list | grep -v emul)
run: meson test -C build --print-errorlogs $(meson test -C build --list | grep /native/)

gcc-qemu:
strategy:
Expand Down Expand Up @@ -417,7 +415,7 @@ jobs:
run: |
sudo apt-get update -y
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo apt-get -yq install ninja-build parallel \
sudo apt-get -yq install ninja-build parallel jq \
gcc-${{ matrix.version }}-${{ matrix.arch_gnu }}-linux-gnu${{ matrix.arch_gnu_abi }} \
g++-${{ matrix.version }}-${{ matrix.arch_gnu }}-linux-gnu${{ matrix.arch_gnu_abi }} binfmt-support \
qemu-user-static pipx libc6-${{ matrix.arch_deb }}-cross libstdc++-${{ matrix.version }}-dev-${{ matrix.arch_deb }}-cross
Expand All @@ -432,9 +430,9 @@ jobs:
- name: Configure
run: meson setup --cross-file=docker/cross-files/${{ matrix.cross }}-gcc-${{ matrix.version }}${{ matrix.extra}}-ccache.cross build
- name: Build
run: ninja -C build -v
run: meson compile -C build --verbose $(meson introspect --targets build | jq -r 'map(.filename[0]) | map(select(contains("-native-"))) | join(" ")' | sed "s=${PWD}/build/==g")
- name: Test
run: meson test -C build --print-errorlogs --print-errorlogs $(meson test -C build --list | grep -v emul)
run: meson test -C build --print-errorlogs --print-errorlogs $(meson test -C build --list | grep /native/)

clang17-qemu-rvv:
strategy:
Expand Down Expand Up @@ -472,7 +470,7 @@ jobs:
- name: Install APT Dependencies
run: |
apt-get install -y python3 python3-pip git ninja-build pkg-config libglib2.0-dev \
lsb-release wget software-properties-common gnupg qemu-user pipx
lsb-release wget software-properties-common gnupg qemu-user pipx jq
apt-get install -y clang-${{ matrix.version }} lldb-${{ matrix.version }} lld-${{ matrix.version }}
#add-apt-repository ppa:savoury1/virtualisation
#add-apt-repository ppa:savoury1/display
Expand All @@ -493,9 +491,9 @@ jobs:
meson setup --cross-file=docker/cross-files/${{ matrix.cross }}-clang-${{ matrix.version }}-ccache.cross build \
|| (cat build/meson-logs/meson-log.txt ; false)
- name: Build
run: ninja -C build -v
run: meson compile -C build --verbose $(meson introspect --targets build | jq -r 'map(.filename[0]) | map(select(contains("-native-"))) | join(" ")' | sed "s=${PWD}/build/==g")
- name: Test
run: meson test -C build --print-errorlogs --print-errorlogs $(meson test -C build --list | grep -v emul)
run: meson test -C build --print-errorlogs --print-errorlogs $(meson test -C build --list | grep /native/)

clang18-qemu-rvv:
strategy:
Expand Down Expand Up @@ -531,7 +529,7 @@ jobs:
- name: Install APT Dependencies
run: |
sudo apt-get install -y python3 git ninja-build pkg-config libglib2.0-dev \
lsb-release wget software-properties-common gnupg qemu-user pipx
lsb-release wget software-properties-common gnupg qemu-user pipx jq
sudo apt-get install -y clang-${{ matrix.version }} lldb-${{ matrix.version }} lld-${{ matrix.version }}
sudo apt-get update -y
sudo apt-get -yq install ninja-build parallel \
Expand All @@ -550,9 +548,9 @@ jobs:
meson setup --cross-file=docker/cross-files/${{ matrix.cross }}-clang-${{ matrix.version }}-ccache.cross build \
|| (cat build/meson-logs/meson-log.txt ; false)
- name: Build
run: ninja -C build -v
run: meson compile -C build --verbose $(meson introspect --targets build | jq -r 'map(.filename[0]) | map(select(contains("-native-"))) | join(" ")' | sed "s=${PWD}/build/==g")
- name: Test
run: meson test -C build --print-errorlogs --print-errorlogs $(meson test -C build --list | grep -v emul)
run: meson test -C build --print-errorlogs --print-errorlogs $(meson test -C build --list | grep /native/)

clang-qemu:
strategy:
Expand Down Expand Up @@ -608,7 +606,7 @@ jobs:
- name: Install APT Dependencies
run: |
sudo apt-get update -y
sudo apt-get -yq install ninja-build parallel \
sudo apt-get -yq install ninja-build parallel jq \
binfmt-support clang-${{ matrix.version }} clang++-${{ matrix.version }} \
qemu-user-static pipx libc6-${{ matrix.arch_deb }}-cross libstdc++-12-dev-${{ matrix.arch_deb }}-cross \
binutils-${{ matrix.arch_gnu }}-linux-gnu${{ matrix.arch_gnu_abi }}
Expand All @@ -625,9 +623,9 @@ jobs:
meson setup --cross-file=docker/cross-files/${{ matrix.cross }}-clang-${{ matrix.version }}-ccache.cross build \
|| (cat build/meson-logs/meson-log.txt ; false)
- name: Build
run: ninja -C build -v
run: meson compile -C build --verbose $(meson introspect --targets build | jq -r 'map(.filename[0]) | map(select(contains("-native-"))) | join(" ")' | sed "s=${PWD}/build/==g")
- name: Test
run: meson test -C build --print-errorlogs --print-errorlogs $(meson test -C build --list | grep -v emul)
run: meson test -C build --print-errorlogs --print-errorlogs $(meson test -C build --list | grep /native/)

clang:
strategy:
Expand Down Expand Up @@ -720,7 +718,7 @@ jobs:
- name: Install APT Dependencies
run: |
sudo apt-get update
sudo apt-get -yq install gcovr ninja-build pipx clang-${{ matrix.version }}
sudo apt-get -yq install gcovr ninja-build pipx clang-${{ matrix.version }} jq
pipx install meson==0.55.1
sudo rm /usr/bin/gcc /usr/bin/g++ /usr/bin/cc /usr/bin/c++
sudo ln -s $(command -v clang-${{ matrix.version }}) /usr/bin/cc
Expand All @@ -737,9 +735,9 @@ jobs:
- name: Configure
run: meson setup build
- name: Build
run: meson compile -C build --verbose
run: meson compile -C build --verbose $(meson introspect --targets build | jq -r 'map(.filename[0]) | map(select(contains("-native-"))) | join(" ")' | sed "s=${PWD}/build/==g")
- name: Test
run: meson test -C build --print-errorlogs $(meson test -C build --list | grep -v emul)
run: meson test -C build --print-errorlogs $(meson test -C build --list | grep /native/)

macos:
strategy:
Expand Down Expand Up @@ -819,13 +817,13 @@ jobs:
find /usr/local/bin -type l -exec sh -c 'readlink -f "$1" \
| grep -q ^/Library/Frameworks/Python.framework/Versions/' _ {} \; -exec rm -v {} \;
- name: Install Homebrew Dependencies
run: brew install meson ninja
run: brew install meson ninja jq
- name: Configure
run: meson setup build || (cat build/meson-logs/meson-log.txt ; false)
- name: Build
run: ninja -C build -v
run: meson compile -C build --verbose $(meson introspect --targets build | jq -r 'map(.filename[0]) | map(select(contains("-native-"))) | join(" ")' | sed "s=${PWD}/build/==g")
- name: Test
run: meson test -C build --print-errorlogs $(meson test -C build --list | grep -v emul)
run: meson test -C build --print-errorlogs $(meson test -C build --list | grep /native/)

icc:
runs-on: ubuntu-24.04
Expand All @@ -839,7 +837,7 @@ jobs:
- name: CPU Information
run: cat /proc/cpuinfo
- name: Install APT Dependencies
run: sudo apt-get install -y ninja-build pipx && pipx install meson==0.64
run: sudo apt-get install -y ninja-build pipx jq && pipx install meson==0.64
- name: Install ICC
run: |
# download the key to system keyring
Expand All @@ -857,9 +855,9 @@ jobs:
- name: Configure
run: meson setup build
- name: Build
run: ninja -C build -v
run: meson compile -C build --verbose $(meson introspect --targets build | jq -r 'map(.filename[0]) | map(select(contains("-native-"))) | join(" ")' | sed "s=${PWD}/build/==g")
- name: Test
run: meson test -C build --print-errorlogs $(meson test -C build --list | grep -v emul)
run: meson test -C build --print-errorlogs $(meson test -C build --list | grep /native/)

msvc-arm64:
name: Windows MSVC-AArch64
Expand Down

0 comments on commit 4d0fddd

Please sign in to comment.