More fixes to compilation warnings #67
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: 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/[email protected] | |
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 ]] |