mirror of
https://github.com/google/cpu_features.git
synced 2025-04-27 23:22:31 +02:00
ci: Update Linux jobs to run inside a docker container.
This commit is contained in:
parent
ccc3a51e4c
commit
1601db5335
9
.github/workflows/aarch64_linux.yml
vendored
9
.github/workflows/aarch64_linux.yml
vendored
@ -20,14 +20,9 @@ jobs:
|
||||
fail-fast: false
|
||||
env:
|
||||
TARGET: ${{ matrix.targets[0] }}
|
||||
CTEST_OUTPUT_ON_FAILURE: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Ninja
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install ninja-build
|
||||
- name: Build
|
||||
run: ./scripts/run_integration.sh build
|
||||
run: make --directory=ci ${TARGET}_build
|
||||
- name: Test
|
||||
run: ./scripts/run_integration.sh test
|
||||
run: make --directory=ci ${TARGET}_test
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: x86 FreeBSD
|
||||
name: amd64 FreeBSD
|
||||
|
||||
on:
|
||||
push:
|
31
.github/workflows/amd64_linux.yml
vendored
Normal file
31
.github/workflows/amd64_linux.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name: amd64 Linux
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
# min hours day(month) month day(week)
|
||||
- cron: '0 0 7,22 * *'
|
||||
|
||||
jobs:
|
||||
# Building using the github runner environement directly.
|
||||
make:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Env
|
||||
run: make --directory=ci amd64_env
|
||||
- name: Devel
|
||||
run: make --directory=ci amd64_devel
|
||||
- name: Build
|
||||
run: make --directory=ci amd64_build
|
||||
- name: Test
|
||||
run: make --directory=ci amd64_test
|
||||
- name: Install Env
|
||||
run: make --directory=ci amd64_install_env
|
||||
- name: Install Devel
|
||||
run: make --directory=ci amd64_install_devel
|
||||
- name: Install Build
|
||||
run: make --directory=ci amd64_install_build
|
||||
- name: Install Test
|
||||
run: make --directory=ci amd64_install_test
|
@ -1,4 +1,4 @@
|
||||
name: x86 Darwin
|
||||
name: amd64 macOS
|
||||
|
||||
on:
|
||||
push:
|
@ -1,4 +1,4 @@
|
||||
name: x86 Windows
|
||||
name: amd64 Windows
|
||||
|
||||
on:
|
||||
push:
|
9
.github/workflows/arm_linux.yml
vendored
9
.github/workflows/arm_linux.yml
vendored
@ -23,14 +23,9 @@ jobs:
|
||||
fail-fast: false
|
||||
env:
|
||||
TARGET: ${{ matrix.targets[0] }}
|
||||
CTEST_OUTPUT_ON_FAILURE: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Ninja
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install ninja-build
|
||||
- name: Build
|
||||
run: ./scripts/run_integration.sh build
|
||||
run: make --directory=ci ${TARGET}_build
|
||||
- name: Test
|
||||
run: ./scripts/run_integration.sh test
|
||||
run: make --directory=ci ${TARGET}_test
|
||||
|
9
.github/workflows/mips_linux.yml
vendored
9
.github/workflows/mips_linux.yml
vendored
@ -22,14 +22,9 @@ jobs:
|
||||
fail-fast: false
|
||||
env:
|
||||
TARGET: ${{ matrix.targets[0] }}
|
||||
CTEST_OUTPUT_ON_FAILURE: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Ninja
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install ninja-build
|
||||
- name: Build
|
||||
run: ./scripts/run_integration.sh build
|
||||
run: make --directory=ci ${TARGET}_build
|
||||
- name: Test
|
||||
run: ./scripts/run_integration.sh test
|
||||
run: make --directory=ci ${TARGET}_test
|
||||
|
27
.github/workflows/x86_linux.yml
vendored
27
.github/workflows/x86_linux.yml
vendored
@ -1,27 +0,0 @@
|
||||
name: x86 Linux
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
# min hours day(month) month day(week)
|
||||
- cron: '0 0 7,22 * *'
|
||||
|
||||
jobs:
|
||||
# Building using the github runner environement directly.
|
||||
make:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
CTEST_OUTPUT_ON_FAILURE: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Check cmake
|
||||
run: cmake --version
|
||||
- name: Configure
|
||||
run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
|
||||
- name: Build
|
||||
run: cmake --build build --target all -v
|
||||
- name: Test
|
||||
run: cmake --build build --target test -v
|
||||
- name: Install
|
||||
run: cmake --build build --target install -v -- DESTDIR=install
|
12
README.md
12
README.md
@ -3,12 +3,12 @@
|
||||
[![Macos Status][macos_svg]][macos_link]
|
||||
[![Windows Status][windows_svg]][windows_link]
|
||||
|
||||
[linux_svg]: https://github.com/google/cpu_features/actions/workflows/x86_linux.yml/badge.svg?branch=master
|
||||
[linux_link]: https://github.com/google/cpu_features/actions/workflows/x86_linux.yml
|
||||
[macos_svg]: https://github.com/google/cpu_features/actions/workflows/x86_darwin.yml/badge.svg?branch=master
|
||||
[macos_link]: https://github.com/google/cpu_features/actions/workflows/x86_darwin.yml
|
||||
[windows_svg]: https://github.com/google/cpu_features/actions/workflows/x86_windows.yml/badge.svg?branch=master
|
||||
[windows_link]: https://github.com/google/cpu_features/actions/workflows/x86_windows.yml
|
||||
[linux_svg]: https://github.com/google/cpu_features/actions/workflows/amd64_linux.yml/badge.svg?branch=master
|
||||
[linux_link]: https://github.com/google/cpu_features/actions/workflows/amd64_linux.yml
|
||||
[macos_svg]: https://github.com/google/cpu_features/actions/workflows/amd64_macos.yml/badge.svg?branch=master
|
||||
[macos_link]: https://github.com/google/cpu_features/actions/workflows/amd64_macos.yml
|
||||
[windows_svg]: https://github.com/google/cpu_features/actions/workflows/amd64_windows.yml/badge.svg?branch=master
|
||||
[windows_link]: https://github.com/google/cpu_features/actions/workflows/amd64_windows.yml
|
||||
|
||||
A cross-platform C library to retrieve CPU features (such as available
|
||||
instructions) at runtime.
|
||||
|
16
ci/README.md
16
ci/README.md
@ -6,11 +6,11 @@
|
||||
| MacOS | [![Status][macos_svg]][macos_link] | N/A | N/A | N/A |
|
||||
| Windows | [![Status][windows_svg]][windows_link] | N/A | N/A | N/A |
|
||||
|
||||
[freebsd_svg]: https://github.com/google/cpu_features/actions/workflows/x86_freebsd.yml/badge.svg?branch=master
|
||||
[freebsd_link]: https://github.com/google/cpu_features/actions/workflows/x86_freebsd.yml
|
||||
[freebsd_svg]: https://github.com/google/cpu_features/actions/workflows/amd64_freebsd.yml/badge.svg?branch=master
|
||||
[freebsd_link]: https://github.com/google/cpu_features/actions/workflows/amd64_freebsd.yml
|
||||
|
||||
[linux_svg]: https://github.com/google/cpu_features/actions/workflows/x86_linux.yml/badge.svg?branch=master
|
||||
[linux_link]: https://github.com/google/cpu_features/actions/workflows/x86_linux.yml
|
||||
[linux_svg]: https://github.com/google/cpu_features/actions/workflows/amd64_linux.yml/badge.svg?branch=master
|
||||
[linux_link]: https://github.com/google/cpu_features/actions/workflows/amd64_linux.yml
|
||||
[linux_aarch64_svg]: https://github.com/google/cpu_features/actions/workflows/aarch64_linux.yml/badge.svg?branch=master
|
||||
[linux_aarch64_link]: https://github.com/google/cpu_features/actions/workflows/aarch64_linux.yml
|
||||
[linux_arm_svg]: https://github.com/google/cpu_features/actions/workflows/arm_linux.yml/badge.svg?branch=master
|
||||
@ -18,11 +18,11 @@
|
||||
[linux_mips_svg]: https://github.com/google/cpu_features/actions/workflows/mips_linux.yml/badge.svg?branch=master
|
||||
[linux_mips_link]: https://github.com/google/cpu_features/actions/workflows/mips_linux.yml
|
||||
|
||||
[macos_svg]: https://github.com/google/cpu_features/actions/workflows/x86_darwin.yml/badge.svg?branch=master
|
||||
[macos_link]: https://github.com/google/cpu_features/actions/workflows/x86_darwin.yml
|
||||
[macos_svg]: https://github.com/google/cpu_features/actions/workflows/amd64_macos.yml/badge.svg?branch=master
|
||||
[macos_link]: https://github.com/google/cpu_features/actions/workflows/amd64_macos.yml
|
||||
|
||||
[windows_svg]: https://github.com/google/cpu_features/actions/workflows/x86_windows.yml/badge.svg?branch=master
|
||||
[windows_link]: https://github.com/google/cpu_features/actions/workflows/x86_windows.yml
|
||||
[windows_svg]: https://github.com/google/cpu_features/actions/workflows/amd64_windows.yml/badge.svg?branch=master
|
||||
[windows_link]: https://github.com/google/cpu_features/actions/workflows/amd64_windows.yml
|
||||
|
||||
## Makefile/Docker testing
|
||||
To test the build on various distro, we are using docker containers and a Makefile for orchestration.
|
||||
|
Loading…
x
Reference in New Issue
Block a user