Skip to content

Update src.cmake

Update src.cmake #32

Workflow file for this run

name: Nix CI
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
nix-build:
strategy:
matrix:
os: [ubuntu-latest]
chatType: [basic, webkit, webengine]
runs-on: ${{ matrix.os }}
steps:
- name: Checking out and fetching submodules
uses: actions/checkout@v2.4.0
with:
submodules: recursive
- name: Install Nix
uses: cachix/install-nix-action@v15
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
system-features = nixos-test benchmark big-parallel kvm
- name: Nix build for “${{ matrix.chatType }}” chat type on ${{ matrix.os }}
run: |
ver=$(git tag --contains "$(git rev-parse @)" | head -1)
if [[ -z $ver ]]; then ver=git-$(git rev-parse --short @); fi
nix-build \
--argstr version "$ver" \
--argstr chatType ${{ matrix.chatType }} \
-o result-ci-test-"$ver"-${{ matrix.chatType }}-built-on-${{ matrix.os }}
# Final check
set -o xtrace
[[ -x result-ci-test-"$ver"-${{ matrix.chatType }}-built-on-${{ matrix.os }}/bin/psi ]]