mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
ci: merge docker_alpine and docker_ubuntu workflows in docker_ci.yml
(#21446)
This commit is contained in:
parent
3563b58a24
commit
920ae6d50f
2 changed files with 32 additions and 65 deletions
|
@ -1,18 +1,18 @@
|
||||||
name: Docker Alpine MUSL CI
|
name: Docker CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.md'
|
- '**.md'
|
||||||
- '**.yml'
|
- '**.yml'
|
||||||
- '!**/docker_alpine.yml'
|
- '!**/docker_ci.yml'
|
||||||
- 'cmd/tools/**'
|
- 'cmd/tools/**'
|
||||||
- '!cmd/tools/builders/**.v'
|
- '!cmd/tools/builders/**.v'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.md'
|
- '**.md'
|
||||||
- '**.yml'
|
- '**.yml'
|
||||||
- '!**/docker_alpine.yml'
|
- '!**/docker_ci.yml'
|
||||||
- 'cmd/tools/**'
|
- 'cmd/tools/**'
|
||||||
- '!cmd/tools/builders/**.v'
|
- '!cmd/tools/builders/**.v'
|
||||||
|
|
||||||
|
@ -20,6 +20,9 @@ concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
env:
|
||||||
|
V_CI_MUSL: 1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
alpine-docker-musl-gcc:
|
alpine-docker-musl-gcc:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
@ -27,15 +30,12 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: thevlang/vlang:alpine-build
|
image: thevlang/vlang:alpine-build
|
||||||
env:
|
env:
|
||||||
V_CI_MUSL: 1
|
|
||||||
VFLAGS: -cc gcc
|
VFLAGS: -cc gcc
|
||||||
volumes:
|
volumes:
|
||||||
- ${{github.workspace}}:/opt/vlang
|
- ${{github.workspace}}:/opt/vlang
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Show Environment
|
- name: Show Environment
|
||||||
run: |
|
run: |
|
||||||
echo "PWD:"
|
echo "PWD:"
|
||||||
|
@ -44,16 +44,36 @@ jobs:
|
||||||
env
|
env
|
||||||
echo "C Compiler:"
|
echo "C Compiler:"
|
||||||
gcc --version
|
gcc --version
|
||||||
|
|
||||||
- name: Add dependencies
|
- name: Add dependencies
|
||||||
run: |
|
run: apk add libc6-compat
|
||||||
apk add libc6-compat
|
|
||||||
|
|
||||||
- name: Build V
|
- name: Build V
|
||||||
run: CC=gcc make
|
run: CC=gcc make
|
||||||
|
|
||||||
- name: All code is formatted
|
- name: All code is formatted
|
||||||
run: VJOBS=1 ./v test-cleancode
|
run: VJOBS=1 ./v test-cleancode
|
||||||
|
|
||||||
- name: Run only essential tests
|
- name: Run only essential tests
|
||||||
run: VTEST_JUST_ESSENTIAL=1 ./v test-self
|
run: VTEST_JUST_ESSENTIAL=1 ./v test-self
|
||||||
|
|
||||||
|
ubuntu-docker-musl:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
timeout-minutes: 121
|
||||||
|
container:
|
||||||
|
image: thevlang/vlang:ubuntu-build
|
||||||
|
env:
|
||||||
|
V_CI_UBUNTU_MUSL: 1
|
||||||
|
VFLAGS: -cc musl-gcc -gc none
|
||||||
|
volumes:
|
||||||
|
- ${{github.workspace}}:/opt/vlang
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Build V
|
||||||
|
run: echo $VFLAGS && make -j4 && ./v -cg -o v cmd/v
|
||||||
|
- name: Verify `v test` works
|
||||||
|
run: |
|
||||||
|
echo $VFLAGS
|
||||||
|
./v cmd/tools/test_if_v_test_system_works.v
|
||||||
|
./cmd/tools/test_if_v_test_system_works
|
||||||
|
- name: All code is formatted
|
||||||
|
run: ./v test-cleancode
|
||||||
|
- name: Test V fixed tests
|
||||||
|
run: ./v test-self vlib
|
53
.github/workflows/docker_ubuntu.yml
vendored
53
.github/workflows/docker_ubuntu.yml
vendored
|
@ -1,53 +0,0 @@
|
||||||
name: Docker Ubuntu MUSL CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths-ignore:
|
|
||||||
- '**.md'
|
|
||||||
- '**.yml'
|
|
||||||
- '!**/docker_ubuntu.yml'
|
|
||||||
- 'cmd/tools/**'
|
|
||||||
- '!cmd/tools/builders/**.v'
|
|
||||||
pull_request:
|
|
||||||
paths-ignore:
|
|
||||||
- '**.md'
|
|
||||||
- '**.yml'
|
|
||||||
- '!**/docker_ubuntu.yml'
|
|
||||||
- 'cmd/tools/**'
|
|
||||||
- '!cmd/tools/builders/**.v'
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
ubuntu-docker-musl:
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
timeout-minutes: 121
|
|
||||||
container:
|
|
||||||
image: thevlang/vlang:ubuntu-build
|
|
||||||
env:
|
|
||||||
V_CI_MUSL: 1
|
|
||||||
V_CI_UBUNTU_MUSL: 1
|
|
||||||
VFLAGS: -cc musl-gcc -gc none
|
|
||||||
volumes:
|
|
||||||
- ${{github.workspace}}:/opt/vlang
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Build V
|
|
||||||
run: |
|
|
||||||
echo $VFLAGS && make -j4 && ./v -cg -o v cmd/v
|
|
||||||
- name: Verify `v test` works
|
|
||||||
run: |
|
|
||||||
echo $VFLAGS
|
|
||||||
./v cmd/tools/test_if_v_test_system_works.v
|
|
||||||
./cmd/tools/test_if_v_test_system_works
|
|
||||||
|
|
||||||
- name: All code is formatted
|
|
||||||
run: ./v test-cleancode
|
|
||||||
|
|
||||||
- name: Test V fixed tests
|
|
||||||
run: ./v test-self vlib
|
|
Loading…
Add table
Add a link
Reference in a new issue