1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-01 13:21:13 +02:00

ci: Update Linux jobs to run inside a docker container.

This commit is contained in:
Corentin Le Molgat
2021-10-27 14:09:08 +02:00
committed by Mizux
parent ccc3a51e4c
commit 1601db5335
10 changed files with 54 additions and 65 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
name: x86 FreeBSD
name: amd64 FreeBSD
on:
push:

31
.github/workflows/amd64_linux.yml vendored Normal file
View 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

View File

@ -1,4 +1,4 @@
name: x86 Darwin
name: amd64 macOS
on:
push:

View File

@ -1,4 +1,4 @@
name: x86 Windows
name: amd64 Windows
on:
push:

View File

@ -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

View File

@ -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

View File

@ -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