Build Nix expression during weekly GitLab CI checks

This commit is contained in:
YoshiRulz 2021-12-08 14:41:57 +10:00
parent 3d5578df1a
commit c56aceb555
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 30 additions and 0 deletions

View File

@ -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: