Update .gitlab-ci.yml
This commit is contained in:
parent
1e3e34d9f7
commit
b17ca8ce6d
@ -1,13 +1,11 @@
|
||||
image: nimlang/nim:alpine
|
||||
|
||||
variables:
|
||||
GIT_DEPTH: "1"
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- .nimble/*
|
||||
|
||||
before_script:
|
||||
- 'git fetch --tags'
|
||||
- 'apk update && apk add libressl-dev clang nasm grub'
|
||||
- 'nimble update && nimble install nake'
|
||||
- 'nim c nakefile'
|
||||
@ -15,10 +13,27 @@ before_script:
|
||||
compile:
|
||||
stage: build
|
||||
script:
|
||||
- '~/.nimble/bin/nake build'
|
||||
- './nakefile build'
|
||||
artifacts:
|
||||
paths:
|
||||
- myos.bin
|
||||
only:
|
||||
- tags
|
||||
- triggers
|
||||
- triggers
|
||||
- web
|
||||
|
||||
create_disc:
|
||||
stage: deploy
|
||||
dependencies:
|
||||
- compile
|
||||
script:
|
||||
- 'apk add xorriso grub-bios'
|
||||
- './nakefile build-release'
|
||||
- './builddisc.sh'
|
||||
artifacts:
|
||||
paths:
|
||||
- myos.iso
|
||||
only:
|
||||
- tags
|
||||
- triggers
|
||||
- web
|
||||
|
Loading…
Reference in New Issue
Block a user