This is the oldest Clang available now on nixpkgs #351
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: test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: arximboldi | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- run: nix-build | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: arximboldi | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- run: nix-shell --run 'mkdir build-mac' | |
- name: configure cmake | |
run: | | |
nix-shell --run " | |
cd build-mac && cmake .. \ | |
-DCMAKE_BUILD_TYPE=Debug | |
" | |
- run: nix-shell --run "cd build-mac && make check -j`nproc`" | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: arximboldi | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- run: nix-shell --run "mkdir build" | |
- run: nix-shell --run "cd build && cmake .." | |
- run: nix-shell --run "cd build && make docs" | |
- uses: shimataro/ssh-key-action@v2 | |
if: github.repository_owner == 'arximboldi' && github.ref == 'refs/heads/master' | |
with: | |
key: ${{ secrets.SINUSOIDES_SSH_KEY }} | |
known_hosts: ${{ secrets.SINUSOIDES_KNOWN_HOSTS }} | |
- run: nix-shell --run "cd build && make upload-docs" | |
if: github.repository_owner == 'arximboldi' && github.ref == 'refs/heads/master' | |
check: | |
strategy: | |
matrix: | |
type: [Debug, Release] | |
compiler: [gcc9] | |
opts: [[]] | |
include: | |
- type: Debug | |
compiler: gcc9 | |
opts: ['coverage'] | |
- type: Debug | |
compiler: clang_12 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: arximboldi | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- run: nix-shell --argstr compiler ${{ matrix.compiler }} --run "mkdir build" | |
- name: configure cmake | |
run: | | |
nix-shell --argstr compiler ${{ matrix.compiler }} --run " | |
cd build && cmake .. \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.type }} \ | |
-DENABLE_COVERAGE=${{ contains(matrix.opts, 'coverage') }} | |
" | |
- run: nix-shell --argstr compiler ${{ matrix.compiler }} --run "cd build && make check -j`nproc`" | |
- run: nix-shell --argstr compiler ${{ matrix.compiler }} --run "bash <(curl -s https://codecov.io/bash)" | |
if: ${{ contains(matrix.opts, 'coverage') }} |