Skip to content

Minor cleanup of stdbigos #526

Minor cleanup of stdbigos

Minor cleanup of stdbigos #526

Workflow file for this run

name: Build and Test
on:
push:
pull_request:
types: [opened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CMAKE_BUILD_PARALLEL_LEVEL: ""
CMAKE_BUILD_TYPE: "Release"
jobs:
build-gcc-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: lukka/get-cmake@latest
with:
cmakeVersion: '~3.29.0'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
gcc-riscv64-linux-gnu dosfstools e2fsprogs mtools \
qemu-system-misc
- name: Generate, build and test
uses: lukka/run-cmake@v10
with:
configurePreset: 'ci-gcc'
buildPreset: 'ci-gcc'
testPreset: 'ci-gcc'
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-gcc
path: build/
build-clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: lukka/get-cmake@latest
with:
cmakeVersion: '~3.29.0'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
clang llvm \
iwyu \
gcc-riscv64-linux-gnu dosfstools e2fsprogs mtools \
qemu-system-misc
- name: Generate, build and test
uses: lukka/run-cmake@v10
with:
configurePreset: 'ci-clang'
buildPreset: 'ci-clang'
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-clang
path: build/
build-gcc-lto:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: lukka/get-cmake@latest
with:
cmakeVersion: '~3.29.0'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
gcc-riscv64-linux-gnu dosfstools e2fsprogs mtools \
qemu-system-misc
- name: Generate, build and test
uses: lukka/run-cmake@v10
with:
configurePreset: 'ci-gcc-lto'
buildPreset: 'ci-gcc-lto'
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-gcc-lto
path: build/
build-clang-lto:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: lukka/get-cmake@latest
with:
cmakeVersion: '~3.29.0'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
clang llvm lld \
iwyu \
gcc-riscv64-linux-gnu dosfstools e2fsprogs mtools \
qemu-system-misc
- name: Generate, build and test
uses: lukka/run-cmake@v10
with:
configurePreset: 'ci-clang-lto'
buildPreset: 'ci-clang-lto'
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-clang-lto
path: build/
build-clang-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: lukka/get-cmake@latest
with:
cmakeVersion: '~3.29.0'
- name: Install dependencies
run: |
brew install llvm lld cmake qemu dosfstools e2fsprogs mtools include-what-you-use
- name: Generate and build
uses: lukka/run-cmake@v10
with:
configurePreset: 'ci-macos-clang'
buildPreset: 'ci-macos-clang'
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-clang-macos
path: build/
build-clang-macos-lto:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: lukka/get-cmake@latest
with:
cmakeVersion: '~3.29.0'
- name: Install dependencies
run: |
brew install llvm lld cmake qemu dosfstools e2fsprogs mtools include-what-you-use
- name: Generate and build
uses: lukka/run-cmake@v10
with:
configurePreset: 'ci-macos-clang-lto'
buildPreset: 'ci-macos-clang-lto'
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-clang-macos-lto
path: build/