Try to factor with shell
This commit is contained in:
parent
bea9c7a75e
commit
e621bdda30
22
.github/workflows/main.yml
vendored
22
.github/workflows/main.yml
vendored
@ -10,6 +10,10 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
WITH_CURRENT_SHELL: "nix-shell --argstr compiler ${{matrix.compiler}} --run"
|
||||||
|
WITH_SHELL: "nix-shell ../../shell.nix --argstr compiler ${{matrix.compiler}} --run"
|
||||||
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -39,24 +43,24 @@ jobs:
|
|||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
|
||||||
- name: Install nix dependencies
|
- name: Install nix dependencies
|
||||||
env:
|
run: $WITH_CURRENT_SHELL 'env'
|
||||||
WITH_SHELL: "nix-shell --argstr compiler ${{matrix.compiler}} --run"
|
|
||||||
run: ${WITH_SHELL} 'env'
|
|
||||||
|
|
||||||
- name: Make configure script
|
- name: Make configure script
|
||||||
env:
|
run: $WITH_CURRENT_SHELL 'autoreconf -sfiv'
|
||||||
WITH_SHELL: "nix-shell --argstr compiler ${{matrix.compiler}} --run"
|
|
||||||
run: ${WITH_SHELL} 'autoreconf -sfiv'
|
|
||||||
|
|
||||||
- name: Compiler ${{matrix.compiler}}
|
- name: Compile (${{matrix.compiler}})
|
||||||
env:
|
|
||||||
WITH_SHELL: "nix-shell ../../shell.nix --argstr compiler ${{matrix.compiler}} --run"
|
|
||||||
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'
|
||||||
$WITH_SHELL 'make ctf'
|
$WITH_SHELL 'make ctf'
|
||||||
$WITH_SHELL 'make'
|
$WITH_SHELL 'make'
|
||||||
|
$WITH_SHELL 'make -C test'
|
||||||
|
|
||||||
|
- name: Run unit tests (${{matrix.compiler}})
|
||||||
|
run: |
|
||||||
|
cd build/${{matrix.compiler}}/test
|
||||||
|
./main
|
||||||
|
|
||||||
|
|
||||||
documentation:
|
documentation:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user