Skip to content

Commit

Permalink
ci: Replace docker with nix
Browse files Browse the repository at this point in the history
  • Loading branch information
vimpostor committed Nov 5, 2023
1 parent 00332f2 commit c80e397
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ jobs:
build:
strategy:
matrix:
cxx: [g++, clang++]
cxx: [gcc]
# cxx: [gcc, clang]
runs-on: ubuntu-latest
env:
CXX: ${{ matrix.cxx }}
NIX_STDENV: ${{ matrix.cxx }}
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build --build-arg cxx=$CXX -t blobdrop .
- name: Format code
run: docker run blobdrop sh -c 'scripts/format-code.sh'
- name: Run tests
run: docker run blobdrop sh -c 'QT_QPA_PLATFORM=offscreen ctest --test-dir build --output-on-failure'
- name: Build documentation
run: docker run blobdrop sh -c 'cd doc && doxygen'
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix flake check

0 comments on commit c80e397

Please sign in to comment.