Merge pull request #440 from morganstanley/readme-lifecycle #217
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build" | |
on: [push, pull_request] | |
jobs: | |
linux-clang-ASanAndUBSan-build: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
clang: [8] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Nix Flakes doesn't work on shallow clones | |
fetch-depth: 0 | |
- uses: cachix/install-nix-action@v30 | |
with: | |
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20201221_9fab14a/install | |
extra_nix_config: | | |
experimental-features = nix-command flakes ca-references | |
- name: nix build hobbesPackages/clang-${{ matrix.clang }}-ASanAndUBSan/hobbes | |
run: | | |
nix build .#hobbesPackages/clang-${{ matrix.clang }}-ASanAndUBSan/hobbes | |
- name: nix log hobbesPackages/clang-${{ matrix.clang }}-ASanAndUBSan/hobbes | |
if: ${{ always() }} | |
run: | | |
nix log .#hobbesPackages/clang-${{ matrix.clang }}-ASanAndUBSan/hobbes &> ${{ matrix.os }}-clang-${{ matrix.clang }}-ASanAndUBSan-hobbes.log | |
- name: upload log ${{ matrix.os }}-clang-${{ matrix.clang }}-ASanAndUBSan-hobbes.log | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: output-log-file-${{ matrix.os }}-clang-${{ matrix.clang }}-ASanAndUBSan-hobbes | |
path: ${{ matrix.os }}-clang-${{ matrix.clang }}-ASanAndUBSan-hobbes.log | |
linux-clang-build: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
clang: [6, 8, 10, 11, 12] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Nix Flakes doesn't work on shallow clones | |
fetch-depth: 0 | |
- uses: cachix/install-nix-action@v30 | |
with: | |
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20201221_9fab14a/install | |
extra_nix_config: | | |
experimental-features = nix-command flakes ca-references | |
- name: nix build hobbesPackages/clang-${{ matrix.clang }}/hobbes | |
run: | | |
nix build .#hobbesPackages/clang-${{ matrix.clang }}/hobbes | |
- name: nix log hobbesPackages/clang-${{ matrix.clang }}/hobbes | |
if: ${{ always() }} | |
run: | | |
nix log .#hobbesPackages/clang-${{ matrix.clang }}/hobbes &> ${{ matrix.os }}-clang-${{ matrix.clang }}-hobbes.log | |
- name: upload log ${{ matrix.os }}-clang-${{ matrix.clang }}-hobbes.log | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: output-log-file-${{ matrix.os }}-clang-${{ matrix.clang }} | |
path: ${{ matrix.os }}-clang-${{ matrix.clang }}-hobbes.log | |
linux-gcc-build: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
gcc: [10] | |
llvm: [6, 8, 10, 11, 12] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Nix Flakes doesn't work on shallow clones | |
fetch-depth: 0 | |
- uses: cachix/install-nix-action@v30 | |
with: | |
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20201221_9fab14a/install | |
extra_nix_config: | | |
experimental-features = nix-command flakes ca-references | |
- name: nix build hobbesPackages/gcc-${{ matrix.gcc }}/llvm-${{ matrix.llvm }}/hobbes | |
run: | | |
nix build .#hobbesPackages/gcc-${{ matrix.gcc }}/llvm-${{ matrix.llvm }}/hobbes | |
- name: nix log hobbesPackages/gcc-${{ matrix.gcc }}/llvm-${{ matrix.llvm }}/hobbes | |
if: ${{ always() }} | |
run: | | |
nix log .#hobbesPackages/gcc-${{ matrix.gcc }}/llvm-${{ matrix.llvm }}/hobbes &> ${{ matrix.os }}-gcc-${{ matrix.gcc }}-llvm-${{ matrix.llvm }}-hobbes.log | |
- name: upload log ${{ matrix.os }}-gcc-${{ matrix.gcc }}-llvm-${{ matrix.llvm }}-hobbes.log | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: output-log-file-${{ matrix.os }}-gcc-${{ matrix.gcc }}-llvm-${{ matrix.llvm }} | |
path: ${{ matrix.os }}-gcc-${{ matrix.gcc }}-llvm-${{ matrix.llvm }}-hobbes.log |