mirror of
https://github.com/intel/isa-l.git
synced 2024-12-12 09:23:50 +01:00
fec429e1b9
This is recommended by ossf scorecard: https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions Change-Id: I48a36cc6625fa3f1e6babb9edbe81c9522f41a13 Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
66 lines
1.6 KiB
YAML
66 lines
1.6 KiB
YAML
name: Continous integration
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
tags:
|
|
- "*"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check_format:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2.3.4
|
|
with:
|
|
fetch-depth: 2
|
|
- name: Install indent
|
|
run: sudo apt install indent
|
|
- name: Run format check
|
|
run: bash tools/check_format.sh
|
|
|
|
run_tests_unix:
|
|
needs: check_format
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- macos-latest
|
|
assembler:
|
|
- nasm
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2.3.4
|
|
- name: Install build dependencies (Linux)
|
|
run: sudo apt install ${{ matrix.assembler }}
|
|
if: runner.os == 'Linux'
|
|
- name: Install build dependencies (Macos)
|
|
run: brew install ${{ matrix.assembler }} automake autoconf coreutils
|
|
if: runner.os == 'macOS'
|
|
- name: Build
|
|
run: |
|
|
./autogen.sh
|
|
./configure
|
|
bash -c 'make -j $(nproc)'
|
|
- name: Run tests
|
|
run: bash tools/test_checks.sh
|
|
- name: Run extended tests
|
|
run: bash tools/test_extended.sh
|
|
if: runner.os == 'Linux' # Fails on Mac OS due to nmake consistency issue
|
|
|
|
run_tests_windows:
|
|
needs: check_format
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2.3.4
|
|
- name: Set MSVC developer prompt
|
|
uses: ilammy/msvc-dev-cmd@v1.6.0
|
|
- name: Install nasm
|
|
uses: ilammy/setup-nasm@v1.2.0
|
|
- name: Build
|
|
run: nmake -f Makefile.nmake
|