Drop ubuntu-18.04 image in GA #10
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: ci | |
on: | |
push: | |
branches: | |
- master | |
- github-actions | |
- ci | |
pull_request: | |
branches: | |
- master | |
jobs: | |
linux: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04] | |
cpp-version: [gcc, clang] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- run: sudo apt-get install -y ${{ matrix.cfg.cpp-version }} -y autoconf automake libtool m4 make pkg-config libjson-c-dev libyaml-dev | |
- run: autoreconf -fiv | |
- run: ./configure | |
- run: make | |
- run: make check | |
- run: make distcheck | |
nix: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v18 | |
with: | |
nix_path: nixpkgs=channel:nixos-23.05 | |
- run: nix-build | |
nix-flake: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v18 | |
with: | |
nix_path: nixpkgs=channel:nixos-23.05 | |
- run: nix build | |
- run: nix flake check |