Replace Debian image w/ Nix (Alpine) in GitLab CI

This commit is contained in:
YoshiRulz 2021-12-12 18:40:51 +10:00
parent f7eff17921
commit 6316cab017
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 4 additions and 6 deletions

View File

@ -117,14 +117,13 @@ check_style:
name: "$CI_HAWK_ARTIFACT_NAME"
paths:
- "$CI_HAWK_ARTIFACT_NAME_TAR"
image: debian:buster-slim
image: nixos/nix:latest
needs:
- build_asms_release
- job: build_asms_debug
artifacts: false
script:
- su -c "apt-get update && apt-get -y install p7zip-full"
- Dist/Package.sh "linux-x64"
- nix-shell -p stdenvNoCC --run 'Dist/Package.sh "linux-x64"'
- cd packaged_output
- tar -cf "../$CI_HAWK_ARTIFACT_NAME_TAR" *
stage: package
@ -135,14 +134,13 @@ check_style:
name: "$CI_HAWK_ARTIFACT_NAME"
paths:
- ./*
image: debian:buster-slim
image: nixos/nix:latest
needs:
- build_asms_release
- job: build_asms_debug
artifacts: false
script:
- su -c "apt-get update && apt-get -y install p7zip-full"
- Dist/Package.sh "windows-x64"
- nix-shell -p stdenvNoCC --run 'Dist/Package.sh "windows-x64"'
# now we replace $CI_PROJECT_DIR with $CI_PROJECT_DIR/packaged_output, so that the archival step will put everything at the top level
- mv packaged_output ..
- cd ..