There's so many bugs in this yaml
parent
1beedc54f4
commit
5c27361e15
|
@ -13,6 +13,8 @@ pipeline:
|
||||||
gen-vc:
|
gen-vc:
|
||||||
# This is what the official CI uses as well
|
# This is what the official CI uses as well
|
||||||
image: 'ubuntu:latest'
|
image: 'ubuntu:latest'
|
||||||
|
secrets:
|
||||||
|
- deploy_key
|
||||||
commands:
|
commands:
|
||||||
# Install ssh-agent if not present
|
# Install ssh-agent if not present
|
||||||
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
|
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
|
||||||
|
@ -24,8 +26,8 @@ pipeline:
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- chmod 700 ~/.ssh
|
- chmod 700 ~/.ssh
|
||||||
# Configure git credentials
|
# Configure git credentials
|
||||||
- "git config --global user.email 'vbot@rustybever.be'"
|
- git config --global user.email 'vbot@rustybever.be'
|
||||||
- 'git config --global user.name "vbot"'
|
- git config --global user.name 'vbot'
|
||||||
|
|
||||||
# The following is copied over from the official repo's CI
|
# The following is copied over from the official repo's CI
|
||||||
# https://github.com/vlang/v/blob/master/.github/workflows/gen_vc.yml
|
# https://github.com/vlang/v/blob/master/.github/workflows/gen_vc.yml
|
||||||
|
@ -36,8 +38,8 @@ pipeline:
|
||||||
- rm -rf vc/v.c vc/v_win.c
|
- rm -rf vc/v.c vc/v_win.c
|
||||||
- ./v -o vc/v.c -os cross cmd/v
|
- ./v -o vc/v.c -os cross cmd/v
|
||||||
- ./v -o vc/v_win.c -os windows -cc msvc cmd/v
|
- ./v -o vc/v_win.c -os windows -cc msvc cmd/v
|
||||||
- 'sed -i "1s/^/#define V_COMMIT_HASH \"$COMMIT_HASH\"\n/" vc/v.c'
|
- 'sed -i "1s/^/#define V_COMMIT_HASH \\"$COMMIT_HASH\"\n/" vc/v.c'
|
||||||
- 'sed -i "1s/^/#define V_COMMIT_HASH \"$COMMIT_HASH\"\n/" vc/v_win.c'
|
- 'sed -i "1s/^/#define V_COMMIT_HASH \\"$COMMIT_HASH\"\n/" vc/v_win.c'
|
||||||
# ensure the C files are over 5000 lines long, as a safety measure
|
# ensure the C files are over 5000 lines long, as a safety measure
|
||||||
- [ $(wc -l < vc/v.c) -gt 5000 ]
|
- [ $(wc -l < vc/v.c) -gt 5000 ]
|
||||||
- [ $(wc -l < vc/v_win.c) -gt 5000 ]
|
- [ $(wc -l < vc/v_win.c) -gt 5000 ]
|
||||||
|
|
Loading…
Reference in New Issue