Separate building of ctf from the rest

This commit is contained in:
Alejandro Gallo 2022-05-10 12:01:33 +02:00
parent e621bdda30
commit 40dd346f9a

View File

@ -48,12 +48,22 @@ jobs:
- name: Make configure script - name: Make configure script
run: $WITH_CURRENT_SHELL 'autoreconf -sfiv' run: $WITH_CURRENT_SHELL 'autoreconf -sfiv'
- name: Compile (${{matrix.compiler}}) - name: Configure (${{matrix.compiler}})
run: | run: |
mkdir -p build/${{matrix.compiler}} mkdir -p build/${{matrix.compiler}}
cd build/${{matrix.compiler}} cd build/${{matrix.compiler}}
$WITH_SHELL '../../configure' $WITH_SHELL '../../configure'
- name: CTF (${{matrix.compiler}})
run: |
mkdir -p build/${{matrix.compiler}}
cd build/${{matrix.compiler}}
$WITH_SHELL 'make ctf' $WITH_SHELL 'make ctf'
- name: Make main (${{matrix.compiler}})
run: |
mkdir -p build/${{matrix.compiler}}
cd build/${{matrix.compiler}}
$WITH_SHELL 'make' $WITH_SHELL 'make'
$WITH_SHELL 'make -C test' $WITH_SHELL 'make -C test'
@ -66,6 +76,8 @@ jobs:
documentation: documentation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
env:
WITH_SHELL: "nix-shell --argstr compiler gcc6 --run"
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v2.3.4
- name: Install Nix - name: Install Nix
@ -74,8 +86,6 @@ jobs:
nix_path: nixpkgs=channel:nixos-unstable nix_path: nixpkgs=channel:nixos-unstable
- name: Configure - name: Configure
env:
WITH_SHELL: "nix-shell --argstr compiler gcc6 --run"
run: | run: |
${WITH_SHELL} 'autoreconf -sfiv' ${WITH_SHELL} 'autoreconf -sfiv'
${WITH_SHELL} './configure --enable-docs' ${WITH_SHELL} './configure --enable-docs'
@ -86,12 +96,12 @@ jobs:
- name: doxygen - name: doxygen
run: | run: |
cd docs cd docs
nix-shell --run 'make doxygen' ${WITH_SHELL} 'make doxygen'
- name: sphinx - name: sphinx
run: | run: |
cd docs cd docs
nix-shell --run 'make sphinx' ${WITH_SHELL} 'make sphinx'
- name: nojekyll - name: nojekyll
run: | run: |