From c80e397cdd98303daa203fe24f9fc1f96e804d67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Gro=C3=9F?= Date: Sun, 5 Nov 2023 22:19:42 +0100 Subject: [PATCH] ci: Replace docker with nix --- .github/workflows/ci.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1de0f4b..7e24fb9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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