From 06f91bf67eb31c217e9c1c3702015983be21aa4c Mon Sep 17 00:00:00 2001 From: zimbatm Date: Tue, 28 Apr 2020 12:52:23 +0200 Subject: [PATCH] add Github Action to run the tests CircleCI doesn't seem to be running on the repository. This also makes it easy for people who fork the repo to run the CI since it is enabled by default on all the repositories. --- .circleci/config.yml | 18 ------------------ .github/workflows/test.yml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 18 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/test.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index b055c71..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,18 +0,0 @@ -version: 2 - -jobs: - nix: - docker: - - image: nixos/nix:latest - working_directory: ~/NixGL - steps: - - checkout - - run: - name: Build all wrapper (with default version for nvidia) - command: nix-build ./all.nix - -workflows: - version: 2 - nix_stack: - jobs: - - nix diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..a22ff26 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,13 @@ +name: 'Test' + +on: [ push, pull_request ] + +jobs: + test: + name: 'Test' + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - uses: cachix/install-nix-action@v8 + - run: nix-build all.nix +