Update github ci
This commit is contained in:
parent
ef1c50d8a0
commit
22d4beb33c
44
.github/workflows/main.yml
vendored
44
.github/workflows/main.yml
vendored
@ -11,45 +11,49 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
compiler: [gcc6, gcc7, gcc8, gcc9, gcc10, gcc11, clang9, clang10, clang11, clang12, clang13]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
|
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: cachix/install-nix-action@v13
|
uses: cachix/install-nix-action@v15
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
|
||||||
- name: Tangle
|
- name: Install nix dependencies
|
||||||
run: nix-shell --run 'make tangle'
|
run: nix-shell --run 'env'
|
||||||
|
|
||||||
|
- name: Make configure script
|
||||||
|
run: test -f ./configure || nix-shell --run 'autoreconf -sfiv'
|
||||||
|
|
||||||
## TODO: do this in a matrix
|
## TODO: do this in a matrix
|
||||||
- name: gcc → Build external dependencies
|
- name: Compiler ${{matrix.compiler}}
|
||||||
run: nix-shell --run 'make extern CONFIG=gcc'
|
run: |
|
||||||
|
mkdir -p build/${{matrix.compiler}}
|
||||||
|
cd build/${{matrix.compiler}}
|
||||||
|
nix-shell $_NIXSHELL --run '../../configure'
|
||||||
|
nix-shell $_NIXSHELL --run 'make ctf'
|
||||||
|
nix-shell $_NIXSHELL --run 'make'
|
||||||
|
env:
|
||||||
|
_NIXSHELL="../../shell.nix"
|
||||||
|
|
||||||
- name: gcc → Build lib
|
|
||||||
run: nix-shell --run 'make lib CONFIG=gcc'
|
|
||||||
|
|
||||||
- name: gcc → Build bench
|
|
||||||
run: nix-shell --run 'make bench CONFIG=gcc'
|
|
||||||
|
|
||||||
- name: clang → Build external dependencies
|
|
||||||
run: nix-shell --arg with-clang true --run 'make extern CONFIG=clang'
|
|
||||||
|
|
||||||
- name: clang → Build lib
|
|
||||||
run: nix-shell --arg with-clang true --run 'make lib CONFIG=clang'
|
|
||||||
|
|
||||||
- name: clang → Build bench
|
|
||||||
run: nix-shell --arg with-clang true --run 'make bench CONFIG=clang'
|
|
||||||
|
|
||||||
documentation:
|
documentation:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: cachix/install-nix-action@v13
|
uses: cachix/install-nix-action@v15
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
|
||||||
|
- name: Check configure
|
||||||
|
run: test -f configure
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
cd docs
|
cd docs
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user