From c56aceb55538953e0bb96f1787ab25929e85e4c3 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Wed, 8 Dec 2021 14:41:57 +1000 Subject: [PATCH] Build Nix expression during weekly GitLab CI checks --- .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e4a9be3409..7345b05b04 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,6 +11,14 @@ stages: - test - package +.with-cachix-mono: + before_script: + - nix-env -iA nixpkgs.cachix + - cachix use $CACHIX_CACHE_NAME + image: nixos/nix:latest + variables: + CACHIX_CACHE_NAME: mono-for-bizhawk + build: artifacts: expire_in: "30 minutes" @@ -35,6 +43,28 @@ build_ext_tools: - for d in $CI_PROJECT_DIR/ExternalToolProjects/*; do if [ -d "$d" ]; then cd "$d" && ./build_release.sh; fi; done stage: test +build_nix_master: + allow_failure: true + extends: .with-cachix-mono + needs: [] + rules: + - if: '$CI_PIPELINE_SOURCE == "schedule"' + when: always + script: + - nix-build --pure -A emuhawk --arg useCWDAsSource true + stage: test + +build_nix_prev_release: + allow_failure: true + extends: .with-cachix-mono + needs: [] + rules: + - if: '$CI_PIPELINE_SOURCE == "schedule"' + when: always + script: + - nix-build --pure -A emuhawk + stage: test + check_style: image: mcr.microsoft.com/dotnet/sdk:6.0 needs: