Skip to content

Merge pull request #273 from GaloisInc/272-update-llvm-pretty-submodu… #121

Merge pull request #273 from GaloisInc/272-update-llvm-pretty-submodu…

Merge pull request #273 from GaloisInc/272-update-llvm-pretty-submodu… #121

Workflow file for this run

name: llvm-pretty-bc-parser nix CI
on:
push:
branches:
- 'master'
- 'release-**'
pull_request:
workflow_dispatch:
jobs:
build:
# This job builds the main package, via a number of GHC versions. This is
# the build that would be used by downstream packages using this as a
# dependency; this does not build documentation or tests.
runs-on: ubuntu-latest
strategy:
matrix:
ghc-version: [ "ghc98", "ghc96", "ghc94" ]
steps:
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-23.05
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: galois
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: build ${{ matrix.ghc-version }}
shell: bash
run: nix build -L github:${{ github.repository }}/${{ github.sha }}#llvm-pretty-bc-parser.${{ matrix.ghc-version }}
tests:
# This job builds the tests, and then runs the tests (in two different
# steps). Note that for llvm-pretty-bc-parser, multiple LLVM versions will
# be tested; the actual list of versions is specified in the `flake.nix` file
# used (see the NOTE comment in that file).
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-23.05
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: galois
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: test build
shell: bash
run: nix build github:${{ github.repository }}/${{ github.sha }}#TESTS_PREP
- name: test
shell: bash
run: nix build -L github:${{ github.repository }}/${{ github.sha }}#TESTS
doc:
# This job builds the documentation (e.g. Hackage, etc.)
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-23.05
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: galois
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: doc
shell: bash
run: nix build github:${{ github.repository }}/${{ github.sha }}#DOC