ci: pass V_CI_MUSL=1 on musl CI jobs

pull/4758/head
Delyan Angelov 2020-05-06 15:10:41 +03:00
parent 8d2a4d2436
commit 88ef0a75e2
2 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,8 @@ jobs:
alpine-docker-musl-gcc: alpine-docker-musl-gcc:
name: alpine-musl name: alpine-musl
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
V_CI_MUSL: 1
steps: steps:
- name: Checkout - name: Checkout
@ -208,6 +210,7 @@ jobs:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
env: env:
VFLAGS: -cc musl-gcc VFLAGS: -cc musl-gcc
V_CI_MUSL: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1

View File

@ -12,6 +12,10 @@ fn test_all() {
eprintln('You can still do it by setting FORCE_VALGRIND_TEST=1 .') eprintln('You can still do it by setting FORCE_VALGRIND_TEST=1 .')
exit(0) exit(0)
} }
if os.getenv('V_CI_MUSL').len > 0 {
eprintln('This test is disabled for musl.')
exit(0)
}
bench_message := 'memory leak checking with valgrind' bench_message := 'memory leak checking with valgrind'
mut bench := benchmark.new_benchmark() mut bench := benchmark.new_benchmark()
eprintln(term.header(bench_message, '-')) eprintln(term.header(bench_message, '-'))